Skip to content

unset

unset<K>(key): void

Resets a configuration option to its default value.

K extends string | number

key: K

The key of the configuration option to reset.

void

If the default value is not defined, the configuration option is removed.

// Reset a custom configuration option
unset('customConfig');

config/src/Service.ts:100