Function filterHandlers

  • Filters a list of handlers to only keep those that can handle the input. Will error if no matching handlers are found.

    Type Parameters

    • TIn

    • TOut

    Parameters

    • handlers: AsyncHandler<TIn, TOut>[]

      Handlers to filter.

    • input: TIn

      Input that needs to be supported.

    Returns Promise<AsyncHandler<TIn, TOut>[]>