mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Merge pull request #28116 from MobisysGmbH/master
[express-fileupload]: add missing properties and options
This commit is contained in:
Vendored
+5
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user