@nestjs/platform-fastify
Version:
Run NestJS on Fastify: the HTTP adapter with Fastify's plugins, JSON schemas and serialization.
15 lines (14 loc) • 669 B
TypeScript
import type { NestInterceptor, Type } from '@nestjs/common';
import type { MultipartOptions } from '../interfaces/index.js';
/**
* Accepts up to `maxCount` files in `fieldName` and exposes them as an array
* in `req.files` (`@UploadedFiles()`). The Fastify counterpart of
* platform-express's `FilesInterceptor`.
*
* @param fieldName name of the form field that carries the files
* @param maxCount maximum number of files to accept
* @param localOptions options merged over the `MultipartModule` defaults
*
* @publicApi
*/
export declare function FilesInterceptor(fieldName: string, maxCount?: number, localOptions?: MultipartOptions): Type<NestInterceptor>;