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

fix(runtime-core): improve the type inference using withDefaults (#6552) #6764

Merged
merged 5 commits into from Nov 8, 2022

Conversation

littleboarx
Copy link
Contributor

this pull request allows you to use undefined as the default value in the function withDefaults
fix #6552

@antfu antfu changed the title fix(runtime-core) improve the type inference using withDefaults(#6552) fix(runtime-core): improve the type inference using withDefaults (#6552) Oct 3, 2022
antfu
antfu approved these changes Oct 3, 2022
@yyx990803 yyx990803 merged commit 168c857 into vuejs:main Nov 8, 2022
8 of 9 checks passed
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.

Typescript possible undefined loses type when using withDefaults and setting explicitly to undefined
3 participants