@wthek/nestjs-middleware
Version:
NestJS middleware for handling and formatting errors using http-error-kit. Automatically detects and supports both Express and Fastify-based NestJS apps to ensure structured error responses with correct HTTP status codes.
11 lines • 462 B
TypeScript
import { INestApplication } from "@nestjs/common";
/**
* KitNestJsMiddleware is a middleware for NestJS applications that provides
* integration with @wthek/express-middleware and @wthek/fastify-middleware.
*
* The middleware is automatically configured based on the NestJS HTTP adapter type.
*
* @param app - The NestJS application instance.
*/
export declare function KitNestJsMiddleware(app: INestApplication): void;
//# sourceMappingURL=index.d.ts.map