A storage provider that supports asynchronous storage of arbitrary data as strings

interface IStorageProvider {
    getItem(key): null | string | Promise<null | string>;
    removeItem(key): void | Promise<string> | Promise<void>;
    setItem(key, value): string | void | Promise<string> | Promise<void>;
}

Implemented by

Methods

  • Parameters

    • key: string
    • value: string

    Returns string | void | Promise<string> | Promise<void>