From fa036bbb48251b1e40f594e7dd6dd034d7e8c77c Mon Sep 17 00:00:00 2001 From: Sergio Regueira Date: Wed, 25 Sep 2019 20:31:14 +0200 Subject: [PATCH] move preservePath property to root options (#38486) --- types/multer/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/multer/index.d.ts b/types/multer/index.d.ts index 0a1ee390ac..008cada95a 100644 --- a/types/multer/index.d.ts +++ b/types/multer/index.d.ts @@ -43,9 +43,9 @@ declare namespace multer { parts?: number; /** For multipart forms, the max number of header key=> value pairs to parse Default: 2000(same as node's http). */ headerPairs?: number; - /** Keep the full path of files instead of just the base name (Default: false) */ - preservePath?: boolean; }; + /** Keep the full path of files instead of just the base name (Default: false) */ + preservePath?: boolean; /** A function to control which files to upload and which to skip. */ fileFilter?(req: Express.Request, file: Express.Multer.File, callback: (error: Error | null, acceptFile: boolean) => void): void; }