diff --git a/adonis-typings/bodyparser.ts b/adonis-typings/bodyparser.ts index 8d3979e..9e7f43f 100644 --- a/adonis-typings/bodyparser.ts +++ b/adonis-typings/bodyparser.ts @@ -15,7 +15,7 @@ declare module '@ioc:Adonis/Addons/BodyParser' { * Readable stream along with some extra * data */ - type MultipartStream = Readable & { + export type MultipartStream = Readable & { headers: any, name: string, filename: string, @@ -116,7 +116,7 @@ declare module '@ioc:Adonis/Addons/BodyParser' { * request object, we need the interface to extend * typings */ - interface MultipartContract { + export interface MultipartContract { consumed: boolean, onFile (name: string, callback: PartHandler): this, onField (key: string, value: any): this, @@ -136,7 +136,7 @@ declare module '@ioc:Adonis/Addons/BodyParser' { /** * New file constructor options shape */ - type FileInputNode = { + export type FileInputNode = { fieldName: string, fileName: string, tmpPath: string, diff --git a/src/Multipart/index.ts b/src/Multipart/index.ts index 246f479..77ea869 100644 --- a/src/Multipart/index.ts +++ b/src/Multipart/index.ts @@ -9,9 +9,9 @@ /// +import { IncomingMessage } from 'http' import * as multiparty from 'multiparty' import { Exception } from '@poppinss/utils' -import { IncomingMessage } from 'http' import { MultipartContract,