Documentation
    Preparing search index...

    A storage that can be used in the browser

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Delete a key from storage

      Type Parameters

      Parameters

      • key: K

        The storage key

      Returns Promise<void>

    • Get the key with the internal prefix

      Parameters

      • key: string

        the storage key

      Returns string

    • This event will fire if the storage was modified by someone else, eg. on another tab

      Parameters

      • callback: (
            arg: {
                eventType: "storageCleared" | "entryModified";
                key: null | string;
                newValue: null | string;
                oldValue: null | string;
            },
        ) => {}

        The callback to be called when a storage value changes

      Returns Promise<void>

    • Returns a promise that resolves to true if the storage option is available on this platform.

      Returns Promise<boolean>