mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-06 13:11:46 +00:00
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:
Vendored
+6
@@ -13,6 +13,12 @@
|
||||
|
||||
import * as Koa from "koa";
|
||||
|
||||
declare module "koa" {
|
||||
interface Context {
|
||||
params: any;
|
||||
}
|
||||
}
|
||||
|
||||
declare module Layer {
|
||||
|
||||
export interface ILayerOptions {
|
||||
|
||||
Reference in New Issue
Block a user