Skip to main content

Interface: ChromeStorageAreaLike

gSwap SDK 2.0.0-rc.4


gSwap SDK 2.0.0-rc.4 / ChromeStorageAreaLike

Interface: ChromeStorageAreaLike

Defined in: packages/gswap-sdk/dist/index.d.ts:3618

The part of a chrome.storage area (storageAdapterFromChromeStorage) the adapter uses, written structurally so the SDK needs no chrome types: chrome.storage.local, chrome.storage.session, browser.storage.local (webextension-polyfill) and any object with these two promise-returning methods satisfy it. It is the Manifest V3 promise form: the methods are called WITHOUT a callback.

Methods​

get()​

get(key): Promise<Record<string, unknown>>

Defined in: packages/gswap-sdk/dist/index.d.ts:3619

Parameters​

key​

string

Returns​

Promise<Record<string, unknown>>


set()​

set(items): Promise<void>

Defined in: packages/gswap-sdk/dist/index.d.ts:3620

Parameters​

items​

Record<string, unknown>

Returns​

Promise<void>