Options
All
  • Public
  • Public/Protected
  • All
Menu

A wrapper around the extension's storage local API

Hierarchy

  • default

Index

Constructors

Properties

Methods

Constructors

constructor

  • Returns default

Properties

isSupported

isSupported: boolean

Methods

Private _get

  • _get(): Promise<unknown>
  • Returns all of the keys currently saved

    Returns Promise<unknown>

    the key-value map from local storage

Private _set

  • _set(obj: any): Promise<void>
  • Sets the key in local state

    Parameters

    • obj: any

      The key to set

    Returns Promise<void>

clear

  • clear(): Promise<void>
  • Returns Promise<void>

get

  • get(): Promise<unknown>
  • Returns all of the keys currently saved

    Returns Promise<unknown>

set

  • set(state: any): Promise<void>
  • Sets the key in local state

    Parameters

    • state: any

      The state to set

    Returns Promise<void>

Legend

  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Type alias with type parameter
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Enumeration
  • Private method