lynx-framework
Version:
lynx is a NodeJS framework for Web Development, based on decorators and the async/await support.
14 lines (13 loc) • 536 B
TypeScript
import { Request as ERequest, Response as EResponse } from "express";
/**
* This is the base class for any response returned by a non-API controller.
* This class is used by the framework to correctly generate the response.
*/
export default abstract class Response {
/**
* Generate the correct response, injecting it to the standard Express response.
* @param req the standard Express request
* @param res the standard Express response
*/
abstract performResponse(req: ERequest, res: EResponse): void;
}