Interface RouteCaptorSignatureMap<TRoute>

A map of the capture receiver signatures depending on their kinds.

Each method name corresponds to capture kind, while its signature represents the capture itself.

Type Parameters

  • TRoute extends PathRoute

    A type of matching route.

Hierarchy

  • RouteCaptorSignatureMap

Methods

Methods

  • Directories capture.

    Captured by rmatchDirs as rcaptureDirs matcher.

    Parameters

    • upto: number

      An index of the route entry following the last captured one. The first captured entry is in context.

    • context: Context<TRoute>

      A context of the capturing matcher.

    Returns void

  • Regular expression capture.

    Captured by rcaptureRegExp matcher.

    Such capture may be reported multiple times per matcher if the matching regexp is global.

    Parameters

    • match: RegExpExecArray

      The regexp match array returned from RegExp.prototype.exec() method call.

    • context: Context<TRoute>

      A context of the capturing matcher.

    Returns void

Generated using TypeDoc