Skip to content

ArgConfig

Compile-time state carried through the builder chain.

Signatures

ts
interface ArgConfig {}

Members

Properties

presence

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

ts
presence: "optional" | "required" | "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.