The unique key of the feature flag.
The default value of the flag, to be used if the value is not available from LaunchDarkly.
If you provided a callback, then nothing. Otherwise, a Promise which will be resolved with
the result (as anLDEvaluationDetailTyped
Generated using TypeDoc
Determines the json variation of a feature flag for a context, along with information about how it was calculated.
The
reason
property of the result will also be included in analytics events, if you are capturing detailed event data for this flag.This version may be favored in TypeScript versus
variation
because it returns anunknown
type instead ofany
.unknown
will require a cast before usage.For more information, see the SDK reference guide.