@univerjs/core v0.5.0-beta.1 • Docs
Interface: ILocalStorageService
Methods
clear()
clear(): Promise<void>
Returns
Promise
<void
>
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/local-storage/local-storage.service.ts:27
getItem()
getItem<T>(key): Promise<null | T>
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
key | string |
Returns
Promise
<null
| T
>
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/local-storage/local-storage.service.ts:24
iterate()
iterate<T, U>(iteratee): Promise<U>
Type Parameters
Type Parameter |
---|
T |
U |
Parameters
Parameter | Type |
---|---|
iteratee | (value , key , iterationNumber ) => U |
Returns
Promise
<U
>
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/local-storage/local-storage.service.ts:30
key()
key(index): Promise<null | string>
Parameters
Parameter | Type |
---|---|
index | number |
Returns
Promise
<null
| string
>
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/local-storage/local-storage.service.ts:28
keys()
keys(): Promise<string[]>
Returns
Promise
<string
[]>
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/local-storage/local-storage.service.ts:29
removeItem()
removeItem(key): Promise<void>
Parameters
Parameter | Type |
---|---|
key | string |
Returns
Promise
<void
>
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/local-storage/local-storage.service.ts:26
setItem()
setItem<T>(key, value): Promise<T>
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
key | string |
value | T |
Returns
Promise
<T
>
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/local-storage/local-storage.service.ts:25