From 3c547b3a2a064cf9991d28b8511df9e5a51dff85 Mon Sep 17 00:00:00 2001 From: Javier Aviles Date: Mon, 12 Nov 2018 14:26:43 +0100 Subject: [PATCH 1/2] textLimit property missing in types The property 'textLimit' similar to jsonLimit is missing in the types :) --- types/koa-bodyparser/index.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/koa-bodyparser/index.d.ts b/types/koa-bodyparser/index.d.ts index deb1eb04e9..425d0883f8 100644 --- a/types/koa-bodyparser/index.d.ts +++ b/types/koa-bodyparser/index.d.ts @@ -46,6 +46,11 @@ declare namespace bodyParser { * limit of the json body. Default is 1mb */ jsonLimit?: string; + + /** + * limit of the text body. Default is 1mb. + */ + textLimit?: string; /** * when set to true, JSON parser will only accept arrays and objects. Default is true From 79d88da172903cf73338204760cc470d8d422666 Mon Sep 17 00:00:00 2001 From: "Aviles, Javier" Date: Mon, 12 Nov 2018 14:55:08 +0100 Subject: [PATCH 2/2] Forgot trailing whitespaces --- types/koa-bodyparser/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/koa-bodyparser/index.d.ts b/types/koa-bodyparser/index.d.ts index 425d0883f8..3cf420ca12 100644 --- a/types/koa-bodyparser/index.d.ts +++ b/types/koa-bodyparser/index.d.ts @@ -46,7 +46,7 @@ declare namespace bodyParser { * limit of the json body. Default is 1mb */ jsonLimit?: string; - + /** * limit of the text body. Default is 1mb. */