@types/multer
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -167,2 +167,12 @@ // Type definitions for multer 1.4 | ||
/** | ||
* a function to control which files should be uploaded and which should be skipped | ||
* pass a boolean to indicate if the file should be accepted | ||
* pass an error if something goes wrong | ||
*/ | ||
interface FileFilterCallback { | ||
(error: Error): void; | ||
(error: null, acceptFile: boolean): void; | ||
} | ||
/** Options for initializing a Multer instance. */ | ||
@@ -212,3 +222,3 @@ interface Options { | ||
* @param file Object containing information about the processed file. | ||
* @param callback Callback to accept or deny the file. | ||
* @param callback a function to control which files should be uploaded and which should be skipped. | ||
*/ | ||
@@ -218,3 +228,3 @@ fileFilter?( | ||
file: Express.Multer.File, | ||
callback: (error: Error | null, acceptFile: boolean) => void | ||
callback: FileFilterCallback, | ||
): void; | ||
@@ -221,0 +231,0 @@ } |
{ | ||
"name": "@types/multer", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "TypeScript definitions for multer", | ||
@@ -53,4 +53,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "4fdef18195bb50db06c46659e9e36ea0cc8a48f795296ebe25249431a9fd4fcb", | ||
"typesPublisherContentHash": "34b95067ce521b81d3ae08376d23fcc6b134f7d821405a0df7bba030438c45cf", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 27 Jan 2020 22:09:38 GMT | ||
* Last updated: Thu, 06 Feb 2020 17:33:08 GMT | ||
* Dependencies: [@types/express](https://npmjs.com/package/@types/express) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
16263
301
0