ResolvedArgValue
Compute the final value type from config — this is what handlers receive.
Advanced type helper: this powers InferArg and action-handler inference. Most apps do not need to mention it explicitly.
Variadic args always produce an array. Non-variadic:
'optional'→T | undefined'required'→T'defaulted'→TImport:
@kjanat/dreamcliExport kind: type
Declared in:
src/core/schema/arg.tsSource link:
packages/dreamcli/src/core/schema/arg.ts:71
Signatures
ts
type ResolvedArgValue<C extends ArgConfig> = C["variadic"] extends true ? C["valueType"][] : C["presence"] extends "optional" ? C["valueType"] | undefined : C["valueType"];