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 '/'.
Common input shape exposed to middleware functions.
Mirrors sveltekit-enhance's
EnhanceInputgenerics (sameParams/RouteIdbounds, extends SvelteKit'sRequestEvent) so middleware/enhancer functions written against either library are interchangeable.RouteIdis 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'/'.