UNPKG

typenexus

Version:

TypeNexus is a good tool for API encapsulation and management. It provides a clean and lightweight way to package TypeORM functionality, helping you build applications faster while reducing template code redundancy and type conversion work.

28 lines (23 loc) 499 B
import { Request, Response, NextFunction } from 'express'; import { DataSource } from 'typeorm'; /** * Controller action properties. */ export interface Action { /** * Action Request object. */ request: Request; /** * Action Response object. */ response: Response; /** * "Next" function used to call next middleware. */ next?: NextFunction; /** * DataSource is a pre-defined connection configuration to a specific database. */ dataSource: DataSource; }