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(types): remove defineProps optional properties #8486

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ItMaga
Copy link

@ItMaga ItMaga commented Jun 2, 2023

closes #6420


defineProps infers optional properties as optional
image

but they actually should by defined with undefined
image


Also, in setup() the same behavior
image

@DrJume
Copy link
Contributor

DrJume commented Dec 5, 2023

tests for this were added in #9757

@pikax pikax added scope: types 🍰 p2-nice-to-have Priority 2: this is not breaking anything but nice to have it addressed. labels Dec 6, 2023
# Conflicts:
#	packages/runtime-core/src/apiSetupHelpers.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍰 p2-nice-to-have Priority 2: this is not breaking anything but nice to have it addressed. ready to merge The PR is ready to be merged. scope: types
Projects
Status: Ready to merge
Development

Successfully merging this pull request may close these issues.

ref returned by toRefs(props) have type Ref<X | undefined> | undefined
3 participants