@univerjscoreinterfacesIconfigservice

@univerjs/core v0.5.4


Interface: IConfigService

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

Methods

deleteConfig()

deleteConfig(id): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/config/config.service.ts:48

Parameters

ParameterType
idstring

Returns

boolean


getConfig()

getConfig<T>(id): Nullable<T>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/config/config.service.ts:46

Type Parameters

Type Parameter
T

Parameters

ParameterType
idstring

Returns

Nullable<T>


setConfig()

setConfig(
   id, 
   value, 
   options?): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/config/config.service.ts:47

Parameters

ParameterType
idstring | symbol
valueunknown
options?IConfigOptions

Returns

void


subscribeConfigValue$()

subscribeConfigValue$<T>(key): Observable<T>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/config/config.service.ts:49

Type Parameters

Type ParameterDefault type
Tunknown

Parameters

ParameterType
keystring

Returns

Observable<T>