@nestjs/platform-fastify
Version:
Run NestJS on Fastify: the HTTP adapter with Fastify's plugins, JSON schemas and serialization.
14 lines (13 loc) • 647 B
TypeScript
import type { NestInterceptor, Type } from '@nestjs/common';
import type { MultipartField, MultipartOptions } from '../interfaces/index.js';
/**
* Accepts files in each of `uploadFields` and exposes them grouped by field
* name in `req.files` (`@UploadedFiles()`). The Fastify counterpart of
* platform-express's `FileFieldsInterceptor`.
*
* @param uploadFields accepted fields, each with an optional `maxCount`
* @param localOptions options merged over the `MultipartModule` defaults
*
* @publicApi
*/
export declare function FileFieldsInterceptor(uploadFields: MultipartField[], localOptions?: MultipartOptions): Type<NestInterceptor>;