@electrovir/local-storage-client - v0.1.0
    Preparing search index...

    Class LocalStorageClient<Shapes>

    An interface for storing values into the LocalStorage API with type safety. Note that only JSON compatible data can be stored.

    Type Parameters

    Index

    Constructors

    Properties

    Delete a specific value by key.

    Gets a specific value by key. This will return undefined if the

    Listen to changes on the specific key. The callback's parameter will be undefined if the value has been deleted.

    options: Readonly<PartialWithUndefined<LocalStorageClientOptions>> = {}

    Set a specific value by key.

    If the given data does not match the defined shape for it.

    shapes: Readonly<Shapes>
    storeName: string

    Accessors

    Methods