Skip to content

ArgPresence

Presence describes whether a positional arg is guaranteed to exist when the action handler runs:

  • 'required' — must be supplied; error if missing (default)

  • 'optional' — may be undefined if not supplied

  • 'defaulted' — always present (falls back to default value)

  • Import: @kjanat/dreamcli

  • Export kind: type

  • Declared in: src/core/schema/arg.ts

  • Source link: packages/dreamcli/src/core/schema/arg.ts:24

Signatures

ts
type ArgPresence = typeof ARG_PRESENCES[number];

See Also

Released under the MIT License.