UNPKG

versioned-storage

Version:
10 lines (8 loc) 182 B
declare export class Storage<T> { name: string; version: number; constructor(name: string, version?: number); read(): ?T; write(value: T): void; static reset(): void; }