UNPKG

ts-router

Version:

koa router middleware, typescript fully supported, jersey like coding

11 lines (10 loc) 245 B
/// <reference types="chai" /> import * as Koa from 'koa'; import Cookie from './cookie'; interface Context extends Koa.Context { [key: string]: any; cookie?: Cookie; params?: Object; requestBody?: any; } export default Context;