Skip to content

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