import { Request, Response } from 'express'; export interface AppRequest extends Request { templatesPath?: string; adminSession?: { user: any; }; basePath?: string; errorFunction: (res: AppResponse, code: number, message: string) => void; user?: any; serverErrorMessage: string; serverConfig?: {}; userTable?: any; } export interface AppResponse extends Response { resolve: (error: Error, value: {}) => void | Promise; serve: (name: string, options: {}) => void | Promise; } export interface Map { [key: string]: T; }