sveltekit-service-manager
    Preparing search index...

    Type Alias MiddlewareInput<Params, RouteId>

    MiddlewareInput: Omit<RequestEvent<any, RouteId>, "params" | "route"> & {
        callType: "method";
        cookies: Cookies;
        fetch: typeof __type;
        isAction: boolean;
        locals: App.Locals;
        params: Params;
        request: Request;
        route: { id: RouteId };
        url: URL;
        get errorHandlers(): MiddlewareErrorHandler[];
    }

    Common input shape exposed to middleware functions.

    Mirrors sveltekit-enhance's EnhanceInput generics (same Params/RouteId bounds, extends SvelteKit's RequestEvent) so middleware/enhancer functions written against either library are interchangeable. RouteId is left generic here and only bound by whatever calls into it (e.g. MiddlewareFunction, middleware), so the route id flows down from the caller instead of being fixed at '/'.

    Type Parameters

    • Params extends AppLayoutParams<"/"> = AppLayoutParams<"/">
    • RouteId extends AppRouteId | string | null = AppRouteId | string | null