-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Question: @types/multer import Multer.File type #18569
Comments
It should be available via the global namespace |
Was able to reach it with importing the express namespace first import { Express } from 'express';
let multerFile: Express.Multer.File; @BendingBender Thanks for the help. |
Is there any particular reason for this to be declared in an |
I needed to do the following to use a multer File type import 'multer';
const multer = require('multer');
let multerFile: Express.Multer.File; A bit ridiculous.... |
import multer = require('multer'); |
So you can't just use |
I just used:
Without importing express first.. So maybe its available globally. |
Hi,
Is it possible to import the
Multer.File
interface from@types/multer
d.ts file ?I was unable to import it directly with
import { File } from 'multer';
.Is there something I'm missing ?
Thanks.
The text was updated successfully, but these errors were encountered: