FlagConfig
Compile-time state carried through the builder chain.
Adding new tracked properties only requires extending this interface — no builder signature changes.
- Import:
@kjanat/dreamcli - Export kind: interface
- Declared in:
src/core/schema/flag.ts - Source link:
src/core/schema/flag.ts:50
Signatures
ts
interface FlagConfig {}Members
Properties
flagKind
The runtime kind discriminator, mirroring FlagKind.
ts
flagKind: "string" | "number" | "boolean" | "enum" | "array" | "custom";optionalFallback
What an unresolved optional flag becomes at the action boundary.
ts
optionalFallback: OptionalFallback;presence
Whether the flag is optional, required, or has a default.
ts
presence: "optional" | "required" | "defaulted";valueType
The resolved value type (e.g. string, number, 'us' | 'eu').
ts
valueType: unknown;