UNPKG

@intuitionrobotics/thunderstorm

Version:
13 lines 648 B
import { type ErrorRequestHandler } from "express"; /** * The single app-level error handler for raw (`handler()`-wrapped) endpoints. * Register it LAST, after the router (see `ApiFunction`). It routes the error * through the shared `composeApiError` pipeline, then writes the response with * the same shape + `apiDebug.enabled` gating as `ApiResponse.serverError` / * `ApiResponse.exception` (server-api.ts:428-440). * * Legacy `ServerApi` endpoints never reach here (they catch internally), so * this is purely additive. */ export declare function terminalErrorHandler(): ErrorRequestHandler; //# sourceMappingURL=app-middleware.d.ts.map