Merge pull request #28116 from MobisysGmbH/master

[express-fileupload]: add missing properties and options
This commit is contained in:
Benjamin Lichtman
2018-08-14 11:13:30 -07:00
committed by GitHub
+5 -1
View File
@@ -1,6 +1,7 @@
// Type definitions for express-fileupload 0.1
// Type definitions for express-fileupload 0.4
// Project: https://github.com/richardgirges/express-fileupload#readme
// Definitions by: Gintautas Miselis <https://github.com/Naktibalda>
// Sefa Ilkimen <https://github.com/silkimen>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@@ -28,13 +29,16 @@ declare namespace fileUpload {
encoding: string;
mimetype: string;
data: Buffer;
truncated: boolean;
mv(path: string, callback: (err: any) => void): void;
mv(path: string): Promise<void>;
}
interface Options {
debug?: boolean;
safeFileNames?: boolean;
preserveExtension?: boolean | string | number;
abortOnLimit?: boolean;
[property: string]: any;
}
}