Skip to content

FlagConfig

Compile-time state carried through the builder chain.

Adding new tracked properties only requires extending this interface — no builder signature changes.

Signatures

ts
interface FlagConfig {}

Members

Properties

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;

See Also

Released under the MIT License.