Add none() to multer.Instance

none() was added in PR [#372](https://github.com/expressjs/multer/pull/372)
This commit is contained in:
Filip Stanis
2018-06-07 14:58:59 +01:00
committed by GitHub
parent 9fb84d20ac
commit d8a31db49c
+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;
}
}