Extend Koa.Context interface:

koa-router adds a new property into context object:
https://github.com/alexmingoia/koa-router/tree/master#url-parameters,
this commit reflects that change in the Koa.Context interface
This commit is contained in:
Pavel Ivanov
2017-03-16 18:28:23 +02:00
parent c8190f4e64
commit 25d01b35ab
+6
View File
@@ -13,6 +13,12 @@
import * as Koa from "koa";
declare module "koa" {
interface Context {
params: any;
}
}
declare module Layer {
export interface ILayerOptions {