Beignet API reference
    Preparing search index...

    Type Alias RouteDef<Ctx, CLike, Hooks>

    RouteDef:
        | HandlerRouteDef<Ctx, CLike, Hooks>
        | AnyUseCaseRouteDef<Ctx, CLike, Hooks>

    Route registration for one contract.

    Routes either bind the contract directly to a use case ({ contract, useCase }) or implement a full handler ({ contract, handle }). The full handler form is the escape hatch for response headers, streaming, native Response values, and multi-status handling.

    Type Parameters