• Preparing search index...
  • The search index is not available
Community Solid Server - v7.1.7
  • Community Solid Server
  • findHandler

Function findHandler

  • findHandler<TIn, TOut>(handlers, input): Promise<AsyncHandler<TIn, TOut>>
  • Finds a handler that can handle the given input data. Otherwise an error gets thrown.

    Type Parameters

    • TIn
    • TOut

    Parameters

    • handlers: AsyncHandler<TIn, TOut>[]

      List of handlers to search in.

    • input: TIn

      The input data.

    Returns Promise<AsyncHandler<TIn, TOut>>

    A promise resolving to a handler that supports the data or otherwise rejecting.

    • Defined in src/util/handlers/HandlerUtil.ts:14

Settings

Member Visibility
Community Solid Server - v7.1.7
  • Loading...