Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MatchFunction<Value, Result, Context, Global, Async, Expected>

Type parameters

  • Value

  • Result

  • Context

  • Global

  • Async = Result extends Promise<unknown> ? true : false

  • Expected = Awaited<Result>

Hierarchy

  • MatchFunction

Callable

  • MatchFunction(m: Match<Value, Context, Global, Expected, false>): Match<Value, Context, Global, Result, Async>
  • Function that receives a callback that takes a Match as the argument and sets its conditions.

    Match will receive Value, Context and Global, and should return Result.

    Parameters

    • m: Match<Value, Context, Global, Expected, false>

    Returns Match<Value, Context, Global, Result, Async>

Generated using TypeDoc