Interface WebStorage

interface WebStorage {
    name: "WebStorage";
    options: { storage: { required: false; type: "object" } };
    create(__namedParameters: WebStorageOptions): StoreFS<WebStorageStore>;
    isAvailable(storage?: Storage): boolean;
}

Hierarchy

  • _WebStorage
    • WebStorage

Properties

Methods

Properties

name: "WebStorage" = 'WebStorage'
options: { storage: { required: false; type: "object" } } = ...

Methods

  • Parameters

    • storage: Storage = globalThis.localStorage

    Returns boolean

    Consider replacing instanceof with a duck-typing check?