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(schematypes): add missing BigInt SchemaType #13787

Merged
merged 2 commits into from Aug 29, 2023
Merged

Conversation

vkarpov15
Copy link
Collaborator

Fix #13780

Summary

#13780 points out that accessing mongoose.Schema.Types.BigInt throws a compiler error in TypeScript. This PR fixes that.

Examples

@vkarpov15 vkarpov15 added this to the 7.5.1 milestone Aug 27, 2023
Copy link
Collaborator

@AbdelrahmanHafez AbdelrahmanHafez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a test to avoid a future regression?

@vkarpov15
Copy link
Collaborator Author

@AbdelrahmanHafez good point, turns out that we also weren't handling BigInts in InferSchemaType. Fixed now.

@vkarpov15 vkarpov15 modified the milestones: 7.5.1, 7.5 Aug 29, 2023
@vkarpov15 vkarpov15 merged commit 84e79b9 into master Aug 29, 2023
3 checks passed
@hasezoey hasezoey deleted the vkarpov15/gh-13780 branch August 29, 2023 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Property 'BigInt' does not exist on type 'typeof Types'
3 participants