swarpc
Version:
Full type-safe RPC library for service worker -- move things off of the UI thread with ease!
14 lines • 483 B
TypeScript
export declare class FauxLocalStorage {
data: Record<string, any>;
keysOrder: string[];
constructor(data: Record<string, any>);
setItem(key: string, value: string): void;
getItem(key: string): any;
hasItem(key: string): boolean;
removeItem(key: string): void;
clear(): void;
key(index: number): string;
get length(): number;
register(subject: WorkerGlobalScope | SharedWorkerGlobalScope): void;
}
//# sourceMappingURL=localstorage.d.ts.map