Skip to content

ArgDefaultValue ​

The value .default() accepts for an arg.

A default stands in for what the arg resolves to, so an arg that aggregates takes the completed array or record and every other arg takes one value.

Signatures ​

ts
type ArgDefaultValue<C extends ArgConfig> = C["argKind"] extends "keyValue" ? C["valueType"] : C["variadic"] extends true ? readonly C["valueType"][] : C["valueType"];

See Also ​

Released under the MIT License.