@fuel-ts/account v0.95.0 • Docs
Class: LocalStorage
Implements
Constructors
new LocalStorage()
new LocalStorage(
localStorage
):LocalStorage
Parameters
• localStorage: Storage
Returns
Defined in
packages/account/src/connectors/types/local-storage.ts:7
Methods
clear()
clear():
Promise
<void
>
Returns
Promise
<void
>
Implementation of
Defined in
packages/account/src/connectors/types/local-storage.ts:23
getItem()
getItem(
key
):Promise
<undefined
|null
|string
>
Parameters
• key: string
Returns
Promise
<undefined
| null
| string
>
Implementation of
Defined in
packages/account/src/connectors/types/local-storage.ts:15
removeItem()
removeItem(
key
):Promise
<void
>
Parameters
• key: string
Returns
Promise
<void
>
Implementation of
Defined in
packages/account/src/connectors/types/local-storage.ts:19
setItem()
setItem(
key
,value
):Promise
<void
>
Parameters
• key: string
• value: string
Returns
Promise
<void
>
Implementation of
Defined in
packages/account/src/connectors/types/local-storage.ts:11