Skip to content

Commit

Permalink
chore: add typings and jsdocs (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
atian25 authored and dead-horse committed May 16, 2019
1 parent 5ce5d7f commit c5c4308
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/config.default.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = appInfo => {
* @property {String} mode - which mode to handle multipart request, default is `stream`, the hard way.
* If set mode to `file`, it's the easy way to handle multipart request and save it to local files.
* If you don't know the Node.js Stream work, maybe you should use the `file` mode to get started.
* @property {RegExp} fileModeMatch - special url to use file mode when global `mode` is `stream`.
* @property {Boolean} autoFields - Auto set fields to parts, default is `false`. Only work on `stream` mode.
* If set true,all fields will be auto handle and can acces by `parts.fields`
* @property {String} defaultCharset - Default charset encoding, don't change it before you real know about it
Expand Down
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ declare module 'egg' {
interface EggAppConfig {
multipart: {
mode?: string;
fileModeMatch?: RegExp;
autoFields?: boolean;
defaultCharset?: string;
fieldNameSize?: number;
Expand Down

0 comments on commit c5c4308

Please sign in to comment.