Beignet API reference
    Preparing search index...

    Type Alias RouteGroup<Ctx, Routes>

    Named collection of related route registrations.

    Route groups are an organization helper only. defineRoutes(...) flattens them before server registration.

    type RouteGroup<
        Ctx,
        Routes extends
            readonly RouteDef<Ctx, any>[] = readonly RouteDef<Ctx, any>[],
    > = {
        kind: typeof ROUTE_GROUP_KIND;
        name: string;
        routes: Routes;
    }

    Type Parameters

    Index

    Properties

    Properties

    kind: typeof ROUTE_GROUP_KIND

    Internal marker used by defineRoutes(...).

    name: string

    Human-readable group name.

    routes: Routes

    Route definitions in this group.