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.
Readonly eventsReadonly metadataReadonly runsReturns the OpenFeature hooks registered for this provider. The LaunchDarkly provider does not currently register any provider-level hooks, so this always returns an empty array.
Protected emitDetermines 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.
If the flag does not evaluate to a JSON object 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 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.
Protected setProtected setCalled by subclass constructors when client construction throws. The error will be re-thrown from initialize.
Generated using TypeDoc
An OpenFeature provider for the LaunchDarkly Server-Side SDK for Node.js.