Beignet API reference
    Preparing search index...

    Type Alias RouteDef<Ctx, CLike>

    Route registration for one contract.

    Route definitions connect a contract to the handler that implements it. Most apps keep these in features/<feature>/routes.ts and compose them with defineRoutes(...).

    type RouteDef<Ctx, CLike extends ContractLike = ContractLike> = {
        contract: CLike;
        handle: Handler<Ctx, ResolveContract<CLike>>;
    }

    Type Parameters

    Index

    Properties

    Properties

    contract: CLike

    Contract builder or plain contract config for this route.

    Handler that implements the contract.