-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Typescript error with createMidleware function #499
Comments
Thanks for opening.
|
I'm using an express application:
and I use it:
PD: I can't cast to TApp, because it doesn't export :( |
Would it help you if we'd export it? Maybe try it with a fork. If it works I'd be happy to see a PR. |
exporting the class did not work, but if a change in the type of TApp, what do you think? |
Awesome. Thanks for contributing. |
Will be published from CI. |
thank you @tdeekens 👍 now is working fine 🥇 |
Hi everybody!
I started to work with the new typescript integration (I'm using Express), and I got an error with the createMidleware function
theapp variable is defined as
Express.Application
,TS Error:
Type 'Application' is missing the following properties from type 'TApp': setTimeout, maxHeadersCount, timeout, headersTimeout, and 9 more.ts(2740)
Should I change the typing of the application?
thanks you!
The text was updated successfully, but these errors were encountered: