mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-30 18:43:21 +08:00
19 lines
700 B
TypeScript
19 lines
700 B
TypeScript
// Type definitions for express-busboy 6.0
|
|
// Project: https://github.com/yahoo/express-busboy
|
|
// Definitions by: Pinguet62 <https://github.com/pinguet62>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.2
|
|
|
|
import * as connectBusboy from 'connect-busboy';
|
|
import * as express from 'express';
|
|
|
|
export interface ExpressBusboyOptions extends connectBusboy.ConnectBusboyOptions {
|
|
upload?: number;
|
|
path?: string;
|
|
allowedPath?: string | RegExp | ((url: string) => boolean);
|
|
restrictMultiple?: boolean;
|
|
mimeTypeLimit?: string | string[];
|
|
}
|
|
|
|
export function extend(app: express.Application, options?: ExpressBusboyOptions): express.Application;
|