UNPKG

ts-site-starter

Version:

![npm](https://img.shields.io/npm/v/ts-site-starter.svg) ![license](https://img.shields.io/npm/l/ts-site-starter.svg) ![github-issues](https://img.shields.io/github/issues/wspecs/ts-site-starter.svg)

22 lines (19 loc) 566 B
import {Request, Response} from 'express'; export interface AppRequest extends Request { 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<void>); serve: (name: string, options: {}) => (void | Promise<void>); } export interface Map<T = any> { [key: string]: T; }