Skip to content

createFeatureFlagClient

createFeatureFlagClient(options?): Promise<Client>

Defined in: packages/pipeline-feature-flags/src/helpers/feature-flag-client.ts:21

Resolves the OpenFeature client a FeatureFlagBehavior evaluates with: the given client, or the client of domain (the default client without one) after registering provider, waiting for it to be ready unless waitForReady is false.

FeatureFlagClientOptions = {}

Promise<Client>

const client = await createFeatureFlagClient({ provider: new UnleashProvider(config) });
const behavior = new FeatureFlagBehavior(client);