UNPKG

529 BTypeScriptView Raw
1import { StorageService } from '../storage-service';
2/**
3 * A StorageService suitable to use during tests.
4 */
5export declare class MockStorageService implements StorageService {
6 readonly data: Map<string, {} | undefined>;
7 onSetDataCallback?: (key: string, data?: any) => void;
8 onSetData(callback: (key: string, data?: any) => void): void;
9 setData<T>(key: string, data?: T): Promise<void>;
10 getData<T>(key: string, defaultValue?: T): Promise<T | undefined>;
11}
12//# sourceMappingURL=mock-storage-service.d.ts.map
\No newline at end of file