Skip to content

mergeDefault

function mergeDefault<T>(def: T, given: T): Required<T>

Merge the default options to user input

Type Parameters

Type Parameter
T extends Record<string, any>

Parameters

ParameterTypeDescription
defTDefault options
givenTUser input

Returns

Required<T>

Merged options

Defined in

shoukaku/src/Utils.ts:35