UNPKG

@wujingquan/nest-file-fastify

Version:

fastify-multipart decorators for Nest.js

9 lines (8 loc) 360 B
import { FastifyRequest } from "fastify"; import { UploadOptions } from "../options"; import { StorageFile } from "../../storage"; export declare const handleMultipartSingleFile: (req: FastifyRequest, fieldname: string, options: UploadOptions) => Promise<{ body: Record<string, any>; file: StorageFile | undefined; remove: () => Promise<void>; }>;