@bearnjs/rest
    Preparing search index...

    Type Alias PathHandler<TPath, TResponse>

    PathHandler:
        | Handler<
            ExtractPathParams<TPath>,
            Record<string, string>,
            JsonValue,
            TResponse,
        >
        | RouteHandler<
            ExtractPathParams<TPath>,
            Record<string, string>,
            JsonValue,
            TResponse,
        >

    Defines a handler inferred from the literal path, supporting both standard and typed handlers.

    Type Parameters

    • TPath extends string

      The type of the path.

    • TResponse extends JsonValue = JsonValue

      The type of the response.