Skip to content

Commit

Permalink
refactor: exporting required interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jul 29, 2019
1 parent 8b663a6 commit d23e117
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions adonis-typings/bodyparser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/Multipart/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

/// <reference path="../../adonis-typings/bodyparser.ts" />

import { IncomingMessage } from 'http'
import * as multiparty from 'multiparty'
import { Exception } from '@poppinss/utils'
import { IncomingMessage } from 'http'

import {
MultipartContract,
Expand Down

0 comments on commit d23e117

Please sign in to comment.