UNPKG

@nestjs/platform-fastify

Version:

Nest - modern, fast, powerful node.js web framework (@platform-fastify)

19 lines (18 loc) • 803 B
import { type DynamicModule } from '@nestjs/common'; import type { MultipartModuleAsyncOptions, MultipartModuleOptions } from './interfaces/files-upload-module.interface.js'; /** * Provides default options for every upload interceptor in the importing * module. The Fastify counterpart of platform-express's `MulterModule`. * * It does not configure the `@fastify/multipart` plugin itself (which the * FastifyAdapter registers); pass plugin-wide options through the * adapter's `multipart` option. * * @publicApi */ export declare class MultipartModule { static register(options?: MultipartModuleOptions): DynamicModule; static registerAsync(options: MultipartModuleAsyncOptions): DynamicModule; private static createAsyncProviders; private static createAsyncOptionsProvider; }