Skip to content

WithPresence ​

Advanced type helper used by FlagBuilder modifiers to replace presence. Most consumers rely on inference and never reference this directly.

Signatures ​

ts
type WithPresence<C extends FlagConfig, P extends FlagPresence> = { valueType: C["valueType"]; presence: P; optionalFallback: C["optionalFallback"]; flagKind: C["flagKind"]; elementEligible: false; };

Members ​

Members ​

valueType ​

ts
valueType: C["valueType"];

presence ​

ts
presence: P;

optionalFallback ​

ts
optionalFallback: C["optionalFallback"];

flagKind ​

ts
flagKind: C["flagKind"];

elementEligible ​

ts
elementEligible: false;

See Also ​

Released under the MIT License.