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)

21 lines (20 loc) 605 B
/// <reference types="express" /> 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; }