Skip to content

set

set<K>(opts): void

Sets one or more configuration options.

Type parameters

K extends Partial<configOpts>

Parameters

opts: K

An object containing key-value pairs of configuration options.

Returns

void

Remarks

This method allows setting multiple configuration options at once. It also updates the log level if provided.

Example

// Set multiple configuration options
set({ customConfig: 'myValue' });

Source

config/src/Service.ts:82