Closed
Description
Version
3.2.26
Reproduction link
Steps to reproduce
import { toRefs } from 'vue'
const props = defineProps<{
isLive?: boolean
}>()
const { isLive } = toRefs(props)
What is expected?
According to fix(runtime-core): ensure declare prop keys are always present type of isLive
should be:
Ref<boolean>
What is actually happening?
The type of isLive
actually is:
Ref<boolean | undefined> | undefined
isLive
couldn't be undefined in no case