@exodus/walletconnect-keyvaluestorage
Version:
Isomorphic Key-Value Storage
12 lines (11 loc) • 431 B
TypeScript
export interface KeyValueStorageOptions {
database?: string;
table?: string;
}
export declare abstract class IKeyValueStorage {
abstract getKeys(): Promise<string[]>;
abstract getEntries<T = any>(): Promise<[string, T][]>;
abstract getItem<T = any>(key: string): Promise<T | undefined>;
abstract setItem<T = any>(key: string, value: T): Promise<void>;
abstract removeItem(key: string): Promise<void>;
}