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.
- Import:
@kjanat/dreamcli - Export kind: type
- Declared in:
src/core/schema/arg.ts - Source link:
src/core/schema/arg.ts:136
Signatures
ts
type ArgDefaultValue<C extends ArgConfig> = C["argKind"] extends "keyValue" ? C["valueType"] : C["variadic"] extends true ? readonly C["valueType"][] : C["valueType"];