@univerjscoreinterfacesIlocalstorageservice

@univerjs/core v0.5.4


Interface: ILocalStorageService

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/local-storage/local-storage.service.ts:19

Methods

clear()

clear(): Promise<void>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/local-storage/local-storage.service.ts:27

Returns

Promise<void>


getItem()

getItem<T>(key): Promise<null | T>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/local-storage/local-storage.service.ts:24

Type Parameters

Type Parameter
T

Parameters

ParameterType
keystring

Returns

Promise<null | T>


iterate()

iterate<T, U>(iteratee): Promise<U>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/local-storage/local-storage.service.ts:30

Type Parameters

Type Parameter
T
U

Parameters

ParameterType
iteratee(value, key, iterationNumber) => U

Returns

Promise<U>


key()

key(index): Promise<null | string>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/local-storage/local-storage.service.ts:28

Parameters

ParameterType
indexnumber

Returns

Promise<null | string>


keys()

keys(): Promise<string[]>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/local-storage/local-storage.service.ts:29

Returns

Promise<string[]>


removeItem()

removeItem(key): Promise<void>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/local-storage/local-storage.service.ts:26

Parameters

ParameterType
keystring

Returns

Promise<void>


setItem()

setItem<T>(key, value): Promise<T>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/local-storage/local-storage.service.ts:25

Type Parameters

Type Parameter
T

Parameters

ParameterType
keystring
valueT

Returns

Promise<T>