Construct a LaunchDarklyProvider.
The SDK key.
Any options for the SDK.
The default amount of time to wait for initialization in seconds. Defaults to 10 seconds.
Private
Readonly
clientPrivate
Readonly
clientReadonly
eventsPrivate
initThe default amount of time to wait for initialization in seconds. Defaults to 10 seconds.
Private
Readonly
loggerReadonly
metadataOptional
Readonly
runsDetermines the boolean variation of a feature flag for a context, along with information about how it was calculated.
If the flag does not evaluate to a boolean value, then the defaultValue will be returned.
The unique key of the feature flag.
The default value of the flag, to be used if the value is not available from LaunchDarkly.
The context requesting the flag. The client will generate an analytics event to register this context with LaunchDarkly if the context does not already exist.
A promise which will resolve to a ResolutionDetails.
Determines the numeric variation of a feature flag for a context, along with information about how it was calculated.
If the flag does not evaluate to a numeric value, then the defaultValue will be returned.
The unique key of the feature flag.
The default value of the flag, to be used if the value is not available from LaunchDarkly.
The context requesting the flag. The client will generate an analytics event to register this context with LaunchDarkly if the context does not already exist.
A promise which will resolve to a ResolutionDetails.
Determines the object variation of a feature flag for a context, along with information about how it was calculated.
The unique key of the feature flag.
The default value of the flag, to be used if the value is not available from LaunchDarkly.
The context requesting the flag. The client will generate an analytics event to register this context with LaunchDarkly if the context does not already exist.
A promise which will resolve to a ResolutionDetails.
Determines the string variation of a feature flag for a context, along with information about how it was calculated.
If the flag does not evaluate to a string value, then the defaultValue will be returned.
The unique key of the feature flag.
The default value of the flag, to be used if the value is not available from LaunchDarkly.
The context requesting the flag. The client will generate an analytics event to register this context with LaunchDarkly if the context does not already exist.
A promise which will resolve to a ResolutionDetails.
Private
translate
An OpenFeature provider for the LaunchDarkly SDK for node.