Function classifyRouteCapture

  • Creates a route capture receiver that classifies the capture by its kind.

    Type Parameters

    Parameters

    • classifier: RouteCaptureClassifier<TRoute>

      Route capture classifier.

    • fallback: RouteCaptor<TRoute> = noop

      Fallback route capture that will be called when no matching method defined in classifier.

    Returns RouteCaptor<TRoute>

    New route capture receiver function that calls classifier's method corresponding to the kind of the capture, or fallback function if no such method defined in classifier.

Generated using TypeDoc