mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Allow null in Options.fileFilter.callback first parameter
This commit is contained in:
Vendored
+1
-1
@@ -36,7 +36,7 @@ declare namespace multer {
|
||||
headerPairs?: number;
|
||||
};
|
||||
/** A function to control which files to upload and which to skip. */
|
||||
fileFilter?: (req: Express.Request, file: Express.Multer.File, callback: (error: Error, acceptFile: boolean) => void) => void;
|
||||
fileFilter?: (req: Express.Request, file: Express.Multer.File, callback: (error: Error | null, acceptFile: boolean) => void) => void;
|
||||
}
|
||||
|
||||
interface StorageEngine {
|
||||
|
||||
Reference in New Issue
Block a user