UNPKG

@blazity/nest-file-fastify

Version:

fastify-multipart decorators for Nest.js

12 lines (11 loc) 490 B
/// <reference types="node" /> import { MultipartFile as _MultipartFile } from "fastify-multipart"; import { Readable } from "stream"; import { Storage, StorageFile } from "../storage"; export declare type MultipartFile = Omit<_MultipartFile, "file"> & { value?: any; file: Readable & { truncated?: boolean; }; }; export declare const removeStorageFiles: (storage: Storage, files?: (StorageFile | undefined)[] | undefined, force?: boolean | undefined) => Promise<void>;