Skip to content

registerComparator

function registerComparator(predicate, handlers): () => void;

Defined in: comparators.ts:84

Register a comparator on the process-wide default registry. Consulted by every evaluation, including the bare ./evaluator.evaluateFlag. Later registrations take precedence (first match wins on lookup).

Parameter Type
predicate ComparatorPredicate
handlers ComparatorHandlers

A function that unregisters this entry.

() => void