Merge pull request #26355 from fstanis/patch-1

[multer] Add none() to multer.Instance
This commit is contained in:
Mine Starks
2018-06-13 09:21:32 -07:00
committed by GitHub
+2
View File
@@ -71,6 +71,8 @@ declare namespace multer {
fields(fields: Field[]): express.RequestHandler;
/** Accepts all files that comes over the wire. An array of files will be stored in req.files. */
any(): express.RequestHandler;
/** Accept only text fields. If any file upload is made, error with code “LIMIT_UNEXPECTED_FILE” will be issued. This is the same as doing upload.fields([]). */
none(): express.RequestHandler;
}
}