Skip to content

OpenFeatureProviderOptions

Defined in: openfeature.ts:117

Options for createOpenFeatureProvider.

Property Type Description Defined in
comparators? ComparatorRegistry Custom comparators for value-object types in the evaluation context (e.g. Dinero, Decimal). Layered over the process-wide registry from ./comparators.registerComparator for evaluations made by this provider. See ./comparators.ComparatorRegistry. openfeature.ts:137
environmentKey? string Environment to evaluate. Defaults to "production". openfeature.ts:123
logger? ProviderLogger Optional logger for non-fatal load/refresh problems. openfeature.ts:130
matchers? MatcherRegistry Named query matchers backing the matches/notMatches operators (e.g. a sift/mingo engine). Layered over the process-wide registry from ./matchers.registerMatcher for evaluations made by this provider. See ./matchers.MatcherRegistry. openfeature.ts:144
onEvaluation? EvaluationListener Fire-and-forget observer invoked once per evaluation (off the return path). For usage/exposure pipelines — never blocks or fails an evaluation. See ./evaluation-sink.EvaluationListener. openfeature.ts:150
onEvaluationError? EvaluationErrorReporter Reporter for errors thrown by onEvaluation. Default: console.warn. openfeature.ts:152
projectKey? string Project to evaluate. Defaults to "default". openfeature.ts:121
refreshIntervalMs? number Background refresh interval in milliseconds. Defaults to 30_000. A value <= 0 disables polling (watch, if available, still applies). openfeature.ts:128
storage KvStorage Runtime storage holding published snapshots (read-only on the request path). openfeature.ts:119