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).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
predicate |
ComparatorPredicate |
handlers |
ComparatorHandlers |
Returns
Section titled “Returns”A function that unregisters this entry.
() => void