mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-30 18:43:21 +08:00
Merge pull request #26330 from anup-2s/master
Update koa-bodyparser with stricter body and rawBody
This commit is contained in:
8
types/koa-bodyparser/index.d.ts
vendored
8
types/koa-bodyparser/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user