Trevixal API
    Preparing search index...

    Interface PreferenceStore

    The two calls preferences need, and no more.

    Narrower than Storage on purpose: a caller substituting one only has to supply what is used here, not length, key, clear and removeItem as well. window.localStorage satisfies it as it stands.

    interface PreferenceStore {
        getItem(key: string): string | null;
        setItem(key: string, value: string): void;
    }
    Index
    • Parameters

      • key: string

      Returns string | null

    • Parameters

      • key: string
      • value: string

      Returns void