Skip to main content

Type Alias: TypedPositionalParameter<T, CONTEXT>

TypedPositionalParameter<T, CONTEXT>: undefined extends T ? OptionalPositionalParameter<NonNullable<T>, CONTEXT> : RequiredPositionalParameter<T, CONTEXT>

Definition of a positional parameter that will eventually be parsed to an argument. Required properties may vary depending on the type argument T.

Type Parameters

T

CONTEXT extends CommandContext = CommandContext

Defined in

packages/core/src/parameter/positional/types.ts:41