Class: LocalStorage
@fuel-ts/account.LocalStorage
Implements
Constructors
constructor
• new LocalStorage(localStorage
): LocalStorage
Parameters
Name | Type |
---|---|
localStorage | Storage |
Returns
Defined in
packages/account/src/connectors/types/local-storage.ts:7
Properties
storage
• Private
storage: Storage
Defined in
packages/account/src/connectors/types/local-storage.ts:5
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
Name | Type |
---|---|
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
Name | Type |
---|---|
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
Name | Type |
---|---|
key | string |
value | string |
Returns
Promise
<void
>