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.
11 lines (10 loc) • 430 B
TypeScript
import { EdgeRenderer } from "edge.js/build/src/edge/renderer";
import { Request } from "express";
import { NestMvcFlash } from "./nest-mvc-flash";
/** Extended Express Request with view renderer and flash message functionality */
export type NestMvcReq = Request & {
/** Edge.js template renderer instance */
view: EdgeRenderer;
/** Flash message handler for storing temporary messages */
flash: NestMvcFlash;
};