API reference

Interface Matcher<TScope, TMatch>

A function that finds the match(es) in the given (sub)document (the ‘scope’) corresponding to some (prespecified) selector(s).

Type parameters

  • TScope

  • TMatch

Hierarchy

  • Matcher

Callable

  • Matcher(scope: TScope): AsyncGenerator<TMatch, void, void>
  • A function that finds the match(es) in the given (sub)document (the ‘scope’) corresponding to some (prespecified) selector(s).

    Parameters

    • scope: TScope

    Returns AsyncGenerator<TMatch, void, void>