Interface: WebStorageLike
gSwap SDK 2.0.0-rc.4 / WebStorageLike
Interface: WebStorageLike
Defined in: packages/gswap-sdk/dist/index.d.ts:3645
The part of a Web Storage area (webStorageAdapter) the adapter uses, written
structurally so the SDK needs no DOM types: localStorage, sessionStorage and any object with
these two synchronous methods (a React Native MMKV wrapper, a test double) satisfy it.
Methods
getItem()
getItem(
key):string|null
Defined in: packages/gswap-sdk/dist/index.d.ts:3646
Parameters
key
string
Returns
string | null
setItem()
setItem(
key,value):void
Defined in: packages/gswap-sdk/dist/index.d.ts:3647
Parameters
key
string
value
string
Returns
void