Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2fcd605

Browse files
authored
docs: update bodyParser types and doc (eggjs#4192)
1 parent 5e2bad0 commit 2fcd605

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

index.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,9 @@ declare module 'egg' {
276276
* @property {String | RegExp | Function | Array} ignore - won't parse request body when url path hit ignore pattern, can not set `ignore` when `match` presented
277277
* @property {String | RegExp | Function | Array} match - will parse request body only when url path hit match pattern
278278
* @property {String} encoding - body encoding config, default utf8
279-
* @property {String} formLimit - form body size limit, default 100kb
280-
* @property {String} jsonLimit - json body size limit, default 100kb
279+
* @property {String} formLimit - form body size limit, default 1mb
280+
* @property {String} jsonLimit - json body size limit, default 1mb
281+
* @property {String} textLimit - json body size limit, default 1mb
281282
* @property {Boolean} strict - json body strict mode, if set strict value true, then only receive object and array json body
282283
* @property {Number} queryString.arrayLimit - from item array length limit, default 100
283284
* @property {Number} queryString.depth - json value deep lenght, default 5
@@ -290,6 +291,7 @@ declare module 'egg' {
290291
encoding: string;
291292
formLimit: string;
292293
jsonLimit: string;
294+
textLimit: string;
293295
strict: boolean;
294296
queryString: {
295297
arrayLimit: number;

0 commit comments

Comments
 (0)