-
-
Notifications
You must be signed in to change notification settings - Fork 3.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
Typescript - .lean output is missing types #15189
Labels
can't reproduce
Mongoose devs have been unable to reproduce this issue. Close after 14 days of inactivity.
typescript
Types or Types-test related issue / Pull Request
Comments
I‘m facing the same issue |
Seems like this is happening when the tsconfig is missing "node" under compilerOptions.types. Closing issue. Feel free to re-open if this is a bug. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
can't reproduce
Mongoose devs have been unable to reproduce this issue. Close after 14 days of inactivity.
typescript
Types or Types-test related issue / Pull Request
Prerequisites
Mongoose version
8.9.5
Node.js version
23.5.0
MongoDB server version
6
Typescript version (if applicable)
5.7.2
Description
There has been a breaking change that causes an invalid type with the .lean output.
Previously, the types were properly inherited but this broke after 8.6.4. The issue still exists with the newest mongoose version 8.9.5.
Last working version: 8.6.4
See example to reproduce.
Steps to Reproduce
Expected Behavior
Types should be inherited like in 8.6.4 when using .lean()
The text was updated successfully, but these errors were encountered: