You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error TS2339: Property 'files' does not exist on type 'Request<{ runId: string; } & { requestId: string; }, any, any, ParsedQs, Record<string, any>>'.
I understand that bb.extend(app... does nothing with the type info, thus we get the compilation error.
But since there's d.ts support for this package, how developers supposed to be accessing req.files w/o falling back to pure JavaScript way of thinking?
If it matters, I have "noImplicitAny": true compiler option set in tsconfig.json, so it's restricted to cast req to any.
The text was updated successfully, but these errors were encountered:
TypeScript project.
Installed
npm i @types/express-busboy --save-dev
.My router method:
Got compilation error on the
console.log
line:I understand that
bb.extend(app...
does nothing with the type info, thus we get the compilation error.But since there's
d.ts
support for this package, how developers supposed to be accessingreq.files
w/o falling back to pure JavaScript way of thinking?If it matters, I have
"noImplicitAny": true
compiler option set intsconfig.json
, so it's restricted to castreq
toany
.The text was updated successfully, but these errors were encountered: