From 25d01b35ab1bccd4d06261b3c718776a872335a2 Mon Sep 17 00:00:00 2001
From: Pavel Ivanov
Date: Thu, 16 Mar 2017 18:24:01 +0200
Subject: [PATCH] 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
---
koa-router/index.d.ts | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/koa-router/index.d.ts b/koa-router/index.d.ts
index 8d78591165..771907aac4 100644
--- a/koa-router/index.d.ts
+++ b/koa-router/index.d.ts
@@ -13,6 +13,12 @@
import * as Koa from "koa";
+declare module "koa" {
+ interface Context {
+ params: any;
+ }
+}
+
declare module Layer {
export interface ILayerOptions {