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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name |
string |
fn |
MatcherFn |
Returns
Section titled “Returns”A function that unregisters this matcher (only if still the same fn).
() => void