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(model): allow passing strict type checking override to create() #14571

Merged
merged 2 commits into from
May 8, 2024

Conversation

vkarpov15
Copy link
Collaborator

Fix #14548

Summary

Right now the generic param to create() makes create()'s type checking slightly looser. This was introduced in e75d4b6 (#11563) but doesn't look to be strictly necessary. With this PR, create() generic param can be used to make create() type checking strict.

Examples

Copy link
Collaborator

@hasezoey hasezoey left a comment

Choose a reason for hiding this comment

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

Looks fine to me

test/types/create.test.ts Show resolved Hide resolved
@hasezoey hasezoey added the typescript Types or Types-test related issue / Pull Request label May 8, 2024
@vkarpov15 vkarpov15 added this to the 6.12.9 milestone May 8, 2024
@vkarpov15 vkarpov15 merged commit 07cb7da into 6.x May 8, 2024
3 checks passed
@hasezoey hasezoey deleted the vkarpov15/gh-14548 branch May 9, 2024 11:52
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

Successfully merging this pull request may close these issues.

None yet

2 participants