import { LogService } from "@bitwarden/logging"; import { GlobalState, KeyDefinition } from "@bitwarden/state"; import { AbstractStorageService, ObservableStorageService } from "@bitwarden/storage-core"; import { StateBase } from "./state-base"; import { globalKeyBuilder } from "./util"; export class DefaultGlobalState extends StateBase> implements GlobalState { constructor( keyDefinition: KeyDefinition, chosenLocation: AbstractStorageService & ObservableStorageService, logService: LogService, ) { super(globalKeyBuilder(keyDefinition), chosenLocation, keyDefinition, logService); } }