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

[TypeScript] add types for "OptionsConstructor" on Schema.Types #10001

Closed
hasezoey opened this issue Mar 6, 2021 · 0 comments
Closed

[TypeScript] add types for "OptionsConstructor" on Schema.Types #10001

hasezoey opened this issue Mar 6, 2021 · 0 comments
Assignees
Labels
typescript Types or Types-test related issue / Pull Request
Milestone

Comments

@hasezoey
Copy link
Collaborator

hasezoey commented Mar 6, 2021

Do you want to request a feature or report a bug?
types

What is the current behavior?
does not have types

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?
things like the following does not have types for OptionsConstructor

// Expected working
mongoose.Schema.Types.Embedded.prototype.OptionsConstructor

// Current workaround
(mongoose as any).Schema.Types.Embedded.prototype.OptionsConstructor

What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
5.11.19

PS: the type for mongoose.SchemaTypeOptions does also not exist

@IslandRhythms IslandRhythms added typescript Types or Types-test related issue / Pull Request needs clarification This issue doesn't have enough information to be actionable. Close after 14 days of inactivity and removed needs clarification This issue doesn't have enough information to be actionable. Close after 14 days of inactivity labels Mar 8, 2021
@vkarpov15 vkarpov15 modified the milestones: 5.11.20, 5.12.1 Mar 10, 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

3 participants