Skip to main content
Version: Next

DecideFunction

DecideFunction

Function type for deciding the outcome of a feature flag based on the provided entities. This function receives an object containing the entities and optionally the provider configuration, and should return the result of the decision. It can be synchronous or asynchronous.

Signature
type DecideFunction<E, R> = (data: {
entities: E;
provider?: FlagConfiguration | null;
}) => MaybePromise<R>