-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
HookNextFunction missing from local types? #9653
Comments
We tried to avoid breaking changes where possible, however, we didn't feel that |
Well, it being missing is causing compilation errors for us. We weren't really expecting to have to fix our code this much after upgrading to a new minor release but if the plan is to not bring those definitions back, we will just update our code accordingly. Thanks. |
No worries, we can add this type back if it causes a lot of trouble for you. Are there any other types you’re missing? |
We are hitting a few other issues but it's in some of the generic stuff so I need to look more closely at that to see if it's something we were relying upon which wasn't actually true or some discrepancy between the two type systems. If I narrow it down and it's not us, I'll open separate defects for that. I've noticed you've been full out at trying to get all of the issues reported with the types fixed quickly and have been very grateful for your work on that! |
still HookNextFunction is missing please guid me if there is any solution for that . |
I'm assuming you are using 6.x+ now? It was added back in the 5.x stream after this issue was closed but was removed from the 6.x code base per the migration document at https://mongoosejs.com/docs/migrating_to_6.html We've worked around it by just defining it ourselves going forward like so:
|
We were recently attempting to update to mongoose 5.11.3 and ran into this compilation error:
This is currently defined in the @types/mongoose but is not defined in the mongoose types.
Is this intended behavior (so we need to now import these from another module) or unintentional?
If it's unintentional, I think some of the other Hook*** are missing as well.
Thanks.
The text was updated successfully, but these errors were encountered: