Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "seq"

Index

Functions

Functions

Const seq

  • Takes an array of matchers and returns new matcher which applies them in sequence. If any of the given matchers fails, returns Match.FAIL.

    Type parameters

    • T

    • C

    • R

    Parameters

    • matches: Matcher<T, C, R>[]

      child matchers

    • Optional success: SeqCallback<T, C, R>

      success callback

    • Optional fail: SeqCallback<T, C, R>

      failure callback

    Returns Matcher<T, C, R>

Generated using TypeDoc