dino-express
Version:
DinO enabled REST framework based on express
18 lines (17 loc) • 728 B
TypeScript
import { type Request, type NextFunction } from 'express';
import { type Response } from '../Response';
/**
* Define the interface for a middleware that will be executed after the request handler
*
* @public
*/
export declare abstract class AfterHandlerMiddleware {
/**
* Abstract definition of the function that will handle the business logic associated with this middleware.
*
* @param {import('express').Request} req Express request instance
* @param {import('express').Response} res express response instance
* @param {Function} next the next function that will be invoked as part of the express chain
*/
abstract handle(_req: Request, _res: Response, _next: NextFunction): void;
}