@univerjs/core v0.5.0-beta.1 • Docs
Interface: IConfigService
Methods
deleteConfig()
deleteConfig(id): boolean
Parameters
Parameter | Type |
---|---|
id | string |
Returns
boolean
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/config/config.service.ts:49
getConfig()
getConfig<T>(id): Nullable<T>
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
id | string |
Returns
Nullable
<T
>
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/config/config.service.ts:47
setConfig()
setConfig(
id,
value,
options?): void
Parameters
Parameter | Type |
---|---|
id | string | symbol |
value | unknown |
options ? | IConfigOptions |
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/config/config.service.ts:48
subscribeConfigValue$()
subscribeConfigValue$<T>(key): Observable<T>
Type Parameters
Type Parameter | Default type |
---|---|
T | unknown |
Parameters
Parameter | Type |
---|---|
key | string |
Returns
Observable
<T
>
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/config/config.service.ts:50