Skip to content
docs

JsonStorage

Defined in: types.ts:39

One JSON value under one key — the shape every small store needs (chrome.storage, AsyncStorage, memory).

T

get(): Promise<T | null>

Defined in: types.ts:41

The stored value, or null on first run.

Promise<T | null>


set(value): Promise<void>

Defined in: types.ts:43

Persist the value.

T

Promise<void>