@proventuslabs/nestjs-multipart-form
Version:
A lightweight and efficient NestJS package for handling multipart form data and file uploads with RxJS streaming support and type safety.
23 lines (22 loc) • 725 B
TypeScript
import { type DynamicModule } from "@nestjs/common";
import { type ASYNC_OPTIONS_TYPE, ConfigurableModuleClass, type OPTIONS_TYPE } from "./module-definition";
/**
* A dynamic NestJS module for handling multipart/form-data requests.
*
* This module provides:
* - Global configuration for multipart parsing.
*
* @example
* @Module({
* imports: [
* MultipartModule.register({
* limits: { files: 5, fieldSize: 2 * 1024 * 1024 },
* }),
* ],
* })
* export class AppModule {}
*/
export declare class MultipartModule extends ConfigurableModuleClass {
static register(options: typeof OPTIONS_TYPE): DynamicModule;
static registerAsync(options: typeof ASYNC_OPTIONS_TYPE): DynamicModule;
}