Skip to content

ArgConfig ​

Compile-time state carried through the builder chain.

Signatures ​

ts
interface ArgConfig {}

Members ​

Properties ​

argKind ​

The runtime kind discriminator, mirroring ArgKind.

ts
argKind: "string" | "number" | "enum" | "custom";

presence ​

Whether the arg is required, optional, or has a default.

ts
presence: "required" | "optional" | "defaulted";

valueType ​

The resolved value type (e.g. string, number, custom).

ts
valueType: unknown;

variadic ​

Whether this arg consumes remaining positionals.

ts
variadic: boolean;

See Also ​

Released under the MIT License.