Update index.d.ts

This commit is contained in:
Ivan Lyons
2018-11-06 15:10:40 +08:00
committed by GitHub
parent 4fa9fd98dc
commit 850d8d25ec

View File

@@ -659,6 +659,10 @@ declare namespace Application {
* Default error handling.
*/
onerror(err: Error): void;
/**
* Custom properties.
*/
[key: string]: any;
}
interface Request extends BaseRequest {
@@ -694,7 +698,6 @@ declare namespace Application {
* To bypass Koa's built-in response handling, you may explicitly set `ctx.respond = false;`
*/
respond?: boolean;
[key: string]: any;
}
}