Merge pull request #26330 from anup-2s/master

Update koa-bodyparser with stricter body and rawBody
This commit is contained in:
Nathan Shively-Sanders
2018-06-20 09:14:47 -07:00
committed by GitHub

View File

@@ -1,6 +1,6 @@
// Type definitions for koa-bodyparser 4.2
// Type definitions for koa-bodyparser 5.0
// Project: https://github.com/koajs/bodyparser
// Definitions by: Jerry Chin <https://github.com/hellopao>
// Definitions by: Jerry Chin <https://github.com/hellopao>, Anup Kishore <https://github.com/anup-2s>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@@ -18,8 +18,8 @@ import * as Koa from "koa";
declare module "koa" {
interface Request {
body: any;
rawBody: any;
body: {} | null | undefined;
rawBody: {} | null | undefined;
}
}