Skip to content

registerMatcher

function registerMatcher(name, fn): () => void;

Defined in: matchers.ts:112

Register a query matcher on the process-wide default registry under name (re-registering a name replaces it). Consulted by every evaluation, including the bare ./evaluator.evaluateFlag.

Parameter Type
name string
fn MatcherFn

A function that unregisters this matcher (only if still the same fn).

() => void