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