Skip to content

MiddlewareInterruptResult

Defined in: src/middleware/stages.ts:24

Result returned by interrupt() in middleware contexts. Returns an object to allow future extension (e.g., cached data, metadata) without a breaking change to callers.

Type ParameterDefault type
TJSONValue
response: T;

Defined in: src/middleware/stages.ts:31

The resolved response value from the interrupt. The generic T is a caller assertion — the actual value is whatever the user passed in InterruptResponseContent.response (a JSONValue). No runtime validation is performed; callers are responsible for ensuring the shape matches.