AbstractGet a flag value without type checking.
The key of the flag to evaluate.
OptionaldefaultValue: unknown
Optional default value returned when evaluation fails.
Optionalcontext: FlagshipEvaluationContext
Optional evaluation context for targeting rules.
Get a boolean flag value with full evaluation details.
The key of the flag to evaluate.
Default value returned when evaluation fails or the flag type does not match.
Optionalcontext: FlagshipEvaluationContext
Optional evaluation context for targeting rules.
Get a boolean flag value.
The key of the flag to evaluate.
Default value returned when evaluation fails or the flag type does not match.
Optionalcontext: FlagshipEvaluationContext
Optional evaluation context for targeting rules.
Get a flag value with full evaluation details, inferring its expected type from the default value.
The key of the flag to evaluate.
Default value returned when evaluation fails or the flag type does not match.
Optionalcontext: FlagshipEvaluationContext
Optional evaluation context for targeting rules.
Get a number flag value with full evaluation details.
The key of the flag to evaluate.
Default value returned when evaluation fails or the flag type does not match.
Optionalcontext: FlagshipEvaluationContext
Optional evaluation context for targeting rules.
Get a number flag value.
The key of the flag to evaluate.
Default value returned when evaluation fails or the flag type does not match.
Optionalcontext: FlagshipEvaluationContext
Optional evaluation context for targeting rules.
Get an object flag value with full evaluation details.
The key of the flag to evaluate.
Default value returned when evaluation fails or the flag type does not match.
Optionalcontext: FlagshipEvaluationContext
Optional evaluation context for targeting rules.
Get an object flag value.
The key of the flag to evaluate.
Default value returned when evaluation fails or the flag type does not match.
Optionalcontext: FlagshipEvaluationContext
Optional evaluation context for targeting rules.
Get a string flag value with full evaluation details.
The key of the flag to evaluate.
Default value returned when evaluation fails or the flag type does not match.
Optionalcontext: FlagshipEvaluationContext
Optional evaluation context for targeting rules.
Get a string flag value.
The key of the flag to evaluate.
Default value returned when evaluation fails or the flag type does not match.
Optionalcontext: FlagshipEvaluationContext
Optional evaluation context for targeting rules.
Get a flag value, inferring its expected type from the default value.
The key of the flag to evaluate.
Default value returned when evaluation fails or the flag type does not match.
Optionalcontext: FlagshipEvaluationContext
Optional evaluation context for targeting rules.
Feature flags binding for evaluating feature flags from a Cloudflare Workers script.
Example