Removed module declaration for express-formidable.

This commit is contained in:
Torkild Dyvik Olsen
2016-11-16 19:41:45 +01:00
parent fed6ac3045
commit 555f2b7c55
+14 -16
View File
@@ -3,21 +3,19 @@
// Definitions by: Torkild Dyvik Olsen <https://github.com/tdolsen>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module "express-formidable" {
import { RequestHandler } from "express";
import { RequestHandler } from "express";
interface ExpressFormidableOptions {
encoding?: string;
uploadDir?: string;
keepExtensions?: boolean;
type?: "multipart" | "urlencoded";
maxFieldsSize?: number;
maxFields?: number;
hash?: boolean | "sha1" | "md5";
multiples?: boolean;
}
function ExpressFormidable(options?: ExpressFormidableOptions): RequestHandler;
export = ExpressFormidable;
interface ExpressFormidableOptions {
encoding?: string;
uploadDir?: string;
keepExtensions?: boolean;
type?: "multipart" | "urlencoded";
maxFieldsSize?: number;
maxFields?: number;
hash?: boolean | "sha1" | "md5";
multiples?: boolean;
}
declare function ExpressFormidable(options?: ExpressFormidableOptions): RequestHandler;
export = ExpressFormidable;