Skip to content
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

[types] Express references in new types #9818

Closed
hasezoey opened this issue Jan 15, 2021 · 2 comments
Closed

[types] Express references in new types #9818

hasezoey opened this issue Jan 15, 2021 · 2 comments
Labels
typescript Types or Types-test related issue / Pull Request
Milestone

Comments

@hasezoey
Copy link
Collaborator

Do you want to request a feature or report a bug?
question / help

Is there an way to express references in mongoose's new types while being type-complete?

Something like what typegoose can do with the old types as can be seen here

i had trouble upgrading these types to the new mongoose types (from 5.10.18 to 5.11.x)

@vkarpov15
Copy link
Collaborator

It should be possible, I'll look into this

@vkarpov15
Copy link
Collaborator

I named the type PopulatedDoc to avoid potential conflicts with Typegoose, but kept the type pretty much identical 👍

This was referenced Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typescript Types or Types-test related issue / Pull Request
Projects
None yet
Development

No branches or pull requests

2 participants