UNPKG

nestjs-mvc-tools

Version:

NestJS MVC Tools is a small set of tools designed to help you get started more easily with traditional web development approaches in NestJS.

12 lines (11 loc) 588 B
import { NestMiddleware } from "@nestjs/common"; import { Response } from "express"; import { NestMvcReq } from "../nest-mvc.type"; import { NestMvcLoggerService } from "../services/nest-mvc-logger.service"; import { NestMvcOptionsService } from "../services/nest-mvc-options.service"; export declare class NestMvcFlashMiddleware implements NestMiddleware { private readonly optionsService; private readonly logger; constructor(optionsService: NestMvcOptionsService, logger: NestMvcLoggerService); use(req: NestMvcReq, res: Response, next: (error?: any) => void): void; }