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] Add proper types for "Schema.index" #10530

Closed
hasezoey opened this issue Aug 1, 2021 · 1 comment
Closed

[Types] Add proper types for "Schema.index" #10530

hasezoey opened this issue Aug 1, 2021 · 1 comment
Labels
typescript Types or Types-test related issue / Pull Request

Comments

@hasezoey
Copy link
Collaborator

hasezoey commented Aug 1, 2021

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

What is the current behavior?
for function (new Schema()).index definition everything is any, at least option should be assigned to IndexOptions

and IndexOptions should extend / use from mongodb's IndexOptions

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

@IslandRhythms IslandRhythms added the typescript Types or Types-test related issue / Pull Request label Aug 2, 2021
@vkarpov15 vkarpov15 added this to the 5.13.6 milestone Aug 3, 2021
@Raader
Copy link
Contributor

Raader commented Aug 3, 2021

#10538

@vkarpov15 vkarpov15 modified the milestones: 5.13.6, 5.13.7 Aug 9, 2021
@vkarpov15 vkarpov15 removed this from the 5.13.7 milestone Aug 9, 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

4 participants