Type Alias $MergeOptions<$O, $P>

$MergeOptions: { [k in Exclude<keyof $O, keyof $P>]: $O[k] } & $P

Merge type options.

This is used in the type to merge the user provided options with the default options.

Type Parameters

  • $O extends Record<string, any>
  • $P extends { [k in keyof $O]?: unknown }

$O - The type of the options, typically provided by the user.

$P - The type of the default options.