UNPKG

@amirmarmul/waba-common

Version:

![GitHub release](https://img.shields.io/github/v/release/amirmarmul/waba-common?style=flat-square)

10 lines (9 loc) 354 B
import { Response, Router } from 'express'; export declare abstract class Controller { router: Router; constructor(); abstract registerRoutes(): void; ok<T>(res: Response, dto?: T): Response<any, Record<string, any>>; created(res: Response): Response<any, Record<string, any>>; fail(res: Response, error: Error | string): void; }