LocalStorage

Icon LinkClass: LocalStorage

@fuel-ts/account .LocalStorage

Icon LinkImplements

Icon LinkConstructors

Icon Linkconstructor

new LocalStorage(localStorage): LocalStorage

Icon LinkParameters

NameType
localStorageStorage

Icon LinkReturns

LocalStorage

Icon LinkDefined in

packages/account/src/connectors/types/local-storage.ts:7 Icon Link

Icon LinkProperties

Icon Linkstorage

Private storage: Storage

Icon LinkDefined in

packages/account/src/connectors/types/local-storage.ts:5 Icon Link

Icon LinkMethods

Icon Linkclear

clear(): Promise<void>

Icon LinkReturns

Promise<void>

Icon LinkImplementation of

StorageAbstract .clear

Icon LinkDefined in

packages/account/src/connectors/types/local-storage.ts:23 Icon Link


Icon LinkgetItem

getItem(key): Promise<undefined | null | string>

Icon LinkParameters

NameType
keystring

Icon LinkReturns

Promise<undefined | null | string>

Icon LinkImplementation of

StorageAbstract .getItem

Icon LinkDefined in

packages/account/src/connectors/types/local-storage.ts:15 Icon Link


Icon LinkremoveItem

removeItem(key): Promise<void>

Icon LinkParameters

NameType
keystring

Icon LinkReturns

Promise<void>

Icon LinkImplementation of

StorageAbstract .removeItem

Icon LinkDefined in

packages/account/src/connectors/types/local-storage.ts:19 Icon Link


Icon LinksetItem

setItem(key, value): Promise<void>

Icon LinkParameters

NameType
keystring
valuestring

Icon LinkReturns

Promise<void>

Icon LinkImplementation of

StorageAbstract .setItem

Icon LinkDefined in

packages/account/src/connectors/types/local-storage.ts:11 Icon Link