UNPKG

@webkrafters/universal-storage

Version:

Universal Storage - A permanent storage based on domain cookie with a local-storage fallback.

11 lines (10 loc) 343 B
import { BaseStorage, Id } from '../..'; export declare class StorageRef<S extends BaseStorage = BaseStorage> { private _current; private _instanceId; static genInstanceId(): string; constructor(instanceId: Id); get current(): S; reset(currentInstanceId: Id): void; set(instance: S, currentInstanceId: Id): void; }