import { BaseKVStore } from "./base" ; import { KVStoreProvider } from "./interface" ; const ExtensionKVStoreProvider = { get : typeof browser !== "undefined" ? browser . storage . local . get : ( undefined as any ) , set : typeof browser !== "undefined" ? browser . storage . local . set : ( undefined as any ) , } ; export class ExtensionKVStore extends BaseKVStore { constructor ( prefix ) { super ( ExtensionKVStoreProvider , prefix ) ; } }