Skip to content

Commit

Permalink
docs: update bodyParser types and doc (#4192)
Browse files Browse the repository at this point in the history
  • Loading branch information
rpig committed Mar 18, 2020
1 parent 5e2bad0 commit 2fcd605
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,9 @@ declare module 'egg' {
* @property {String | RegExp | Function | Array} ignore - won't parse request body when url path hit ignore pattern, can not set `ignore` when `match` presented
* @property {String | RegExp | Function | Array} match - will parse request body only when url path hit match pattern
* @property {String} encoding - body encoding config, default utf8
* @property {String} formLimit - form body size limit, default 100kb
* @property {String} jsonLimit - json body size limit, default 100kb
* @property {String} formLimit - form body size limit, default 1mb
* @property {String} jsonLimit - json body size limit, default 1mb
* @property {String} textLimit - json body size limit, default 1mb
* @property {Boolean} strict - json body strict mode, if set strict value true, then only receive object and array json body
* @property {Number} queryString.arrayLimit - from item array length limit, default 100
* @property {Number} queryString.depth - json value deep lenght, default 5
Expand All @@ -290,6 +291,7 @@ declare module 'egg' {
encoding: string;
formLimit: string;
jsonLimit: string;
textLimit: string;
strict: boolean;
queryString: {
arrayLimit: number;
Expand Down

0 comments on commit 2fcd605

Please sign in to comment.