Class: DesktopLocalStorageService
Defined in: submodules/univer/packages/ui/src/services/local-storage/local-storage.service.ts:20
Implements
Constructors
new DesktopLocalStorageService()
new DesktopLocalStorageService(): DesktopLocalStorageService
Returns
Methods
clear()
clear(): Promise<void>
Defined in: submodules/univer/packages/ui/src/services/local-storage/local-storage.service.ts:33
Returns
Promise
<void
>
Implementation of
getItem()
getItem<T>(key): Promise<null | T>
Defined in: submodules/univer/packages/ui/src/services/local-storage/local-storage.service.ts:21
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
key | string |
Returns
Promise
<null
| T
>
Implementation of
iterate()
iterate<T, U>(iteratee): Promise<U>
Defined in: submodules/univer/packages/ui/src/services/local-storage/local-storage.service.ts:45
Type Parameters
Type Parameter |
---|
T |
U |
Parameters
Parameter | Type |
---|---|
iteratee | (value , key , iterationNumber ) => U |
Returns
Promise
<U
>
Implementation of
key()
key(index): Promise<null | string>
Defined in: submodules/univer/packages/ui/src/services/local-storage/local-storage.service.ts:37
Parameters
Parameter | Type |
---|---|
index | number |
Returns
Promise
<null
| string
>
Implementation of
keys()
keys(): Promise<string[]>
Defined in: submodules/univer/packages/ui/src/services/local-storage/local-storage.service.ts:41
Returns
Promise
<string
[]>
Implementation of
removeItem()
removeItem(key): Promise<void>
Defined in: submodules/univer/packages/ui/src/services/local-storage/local-storage.service.ts:29
Parameters
Parameter | Type |
---|---|
key | string |
Returns
Promise
<void
>
Implementation of
ILocalStorageService
.removeItem
setItem()
setItem<T>(key, value): Promise<T>
Defined in: submodules/univer/packages/ui/src/services/local-storage/local-storage.service.ts:25
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
key | string |
value | T |
Returns
Promise
<T
>