UNPKG

@girin/framework

Version:

Core modules for Girin: GraphQL server framework

24 lines (21 loc) 565 B
import { Readable } from 'stream'; export interface FileUpload { /** * File name */ filename: string; /** * File MIME type. Provided by the client and can’t be trusted. */ mimetype: string; /** * File stream transfer encoding */ encoding: string; /** * Returns a Node.js readable stream of the file contents, for processing and storing the file. * Multiple calls create independent streams. Throws if called after all resolvers have resolved, * or after an error has interrupted the request. */ stream: Readable; }