A simple OpenFeature provider intended for demos and as a test stub.

Implements

Constructors

Properties

_context: undefined | EvaluationContext
_flagConfiguration: FlagConfiguration

An event emitter for ProviderEvents.

See

ProviderEvents

metadata: {
    name: "in-memory";
} = ...

Type declaration

  • Readonly name: "in-memory"
runsOn: "client" = 'client'

Represents where the provider is intended to be run. If defined, the SDK will enforce that the defined paradigm at runtime.

Methods

  • A 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.

    Parameters

    Returns Promise<void>

Generated using TypeDoc