Interface MatchFunction<Value, Result, Context, Global, Async, Expected>
Type parameters
Value
Result
Context
Global
Async = Result extends Promise<unknown> ? true : false
Expected = Awaited<Result>
Callable
- MatchFunction(m: Match<Value, Context, Global, Expected, false>): Match<Value, Context, Global, Result, Async>
Parameters
m: Match<Value, Context, Global, Expected, false>
Returns 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.