import { Class } from './class.interface'; import { Context, HttpResponse } from './http'; export interface IController { subControllers?: Class[]; [key: string]: any; } export interface IAppController extends IController { init?(): void | Promise; handleError?(error: Error, ctx: Context): HttpResponse | Promise; }