Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to typescript #25

Open
ReyPena opened this issue Oct 19, 2018 · 1 comment
Open

Add support to typescript #25

ReyPena opened this issue Oct 19, 2018 · 1 comment

Comments

@ReyPena
Copy link

ReyPena commented Oct 19, 2018

this will help for projects build on node.
It requires a module declaration on a .d.ts file.
something like: declare module 'busboy-body-parser'

@houssem-yahiaoui
Copy link

@ReyPena you can overcome the support by simply creating a new interface and adding the files as attribute there as Typescript have type declaration merging it will just give you a new type with files on.

interface RequestWithFiles extends Request {
    files: any
}

Hope this helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants