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

Implemented by

Methods

  • Returns Promise<void>

  • Parameters

    • key: string

    Returns Promise<null | string>

  • Parameters

    • key: string

    Returns Promise<void>

  • Parameters

    • key: string
    • value: string

    Returns Promise<void>