Optional ReadonlydomainWhen true, the provider maintains state specific to a single domain (such as a persistent cache) and the SDK will bind it to at most one domain.
OptionaleventsAn event emitter for ProviderEvents.
Optional ReadonlyhooksA provider hook exposes a mechanism for provider authors to register hooks to tap into various stages of the flag evaluation lifecycle. These hooks can be used to perform side effects and mutate the context for purposes of the provider. Provider hooks are not configured or controlled by the application author.
ReadonlymetadataOptional ReadonlyrunsRepresents where the provider is intended to be run. If defined, the SDK will enforce that the defined paradigm at runtime.
Optional ReadonlystatusOptionalinitializeA function used to setup the provider. Called by the SDK after the provider is set if the provider's status is NOT_READY. When the returned promise resolves, the SDK fires the ProviderEvents.Ready event. If the returned promise rejects, the SDK fires the ProviderEvents.Error event. Use this function to perform any context-dependent setup within the provider.
Optionalcontext: EvaluationContextthe global evaluation context
Optionaldomain: stringthe bound domain, if any
OptionalonResolve a boolean flag and its evaluation details.
Resolve a numeric flag and its evaluation details.
Resolve and parse an object flag and its evaluation details.
Resolve a string flag and its evaluation details.
OptionaltrackTrack a user action or application state, usually representing a business objective or outcome.
Interface that providers must implement to resolve flag values for their particular backend or vendor.
Implementation for resolving all the required flag types must be defined.