From d8a31db49c20fa1f84f5e6b60548c6d4a8fe6ac3 Mon Sep 17 00:00:00 2001 From: Filip Stanis Date: Thu, 7 Jun 2018 14:58:59 +0100 Subject: [PATCH] Add none() to multer.Instance none() was added in PR [#372](https://github.com/expressjs/multer/pull/372) --- types/multer/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/multer/index.d.ts b/types/multer/index.d.ts index d019b9fdcb..7d2bfefc26 100644 --- a/types/multer/index.d.ts +++ b/types/multer/index.d.ts @@ -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; } }