Skip to content

Interface: ConfigStore<C> ​

Defined in: config/types.ts:139

Merges the configuration layers and saves the difference.

Type Parameters ​

Type Parameter
C

Properties ​

PropertyModifierTypeDescriptionDefined in
readyreadonlyPromise<void>Resolves after all providers settle. It never rejects.config/types.ts:141
sectionsreadonlyreadonly Section<string, Schema>[]The sections, with the theme section first.config/types.ts:143

Methods ​

destroy() ​

ts
destroy(): void;

Defined in: config/types.ts:159

Stops all requests and removes all listeners.

Returns ​

void


export() ​

ts
export(): ConfigDocument;

Defined in: config/types.ts:153

Gives the merged configuration of all sections as a document.

Returns ​

ConfigDocument


get() ​

ts
get(): C;

Defined in: config/types.ts:145

Gives the merged configuration of the known sections.

Returns ​

C


import() ​

ts
import(document): void;

Defined in: config/types.ts:155

Puts a document in the runtime layer.

Parameters ​

ParameterType
documentunknown

Returns ​

void


reset() ​

ts
reset(): void;

Defined in: config/types.ts:149

Removes the runtime layer and the difference of the target provider.

Returns ​

void


save() ​

ts
save(options?): Promise<void>;

Defined in: config/types.ts:151

Saves the difference to the target provider.

Parameters ​

ParameterType
options?SaveOptions

Returns ​

Promise<void>


set() ​

ts
set(patch): void;

Defined in: config/types.ts:147

Changes the runtime layer.

Parameters ​

ParameterType
patchConfigPatch<C>

Returns ​

void


subscribe() ​

ts
subscribe(listener): () => void;

Defined in: config/types.ts:157

Adds a listener for changes of the merged configuration.

Parameters ​

ParameterType
listener(next, previous) => void

Returns ​

() => void