@tsed/common
Version:
A TypeScript Framework on top of Express
20 lines (19 loc) • 658 B
TypeScript
import { PlatformMulterField, PlatformMulterSettings } from "../../config";
import { IMiddleware } from "../../mvc/interfaces/IMiddleware";
import { Context } from "../decorators/context";
import { PlatformApplication } from "../services/PlatformApplication";
export interface MulterInputOptions {
fields: PlatformMulterField[];
}
/**
* @middleware
*/
export declare class PlatformMulterMiddleware implements IMiddleware {
settings: PlatformMulterSettings;
app: PlatformApplication;
use(ctx: Context): Promise<any>;
protected getFields(conf: MulterInputOptions): {
name: string;
maxCount: number | undefined;
}[];
}