Subscribe on changes!

defineProps编译后把undefined类型变成了null了

avatar
Jan 26th 2022

Version

3.2.29

Reproduction link

sfc.vuejs.org/

Steps to reproduce

直接看Comp.vue的编译结果

What is expected?

类型存在变成null

What is actually happening?

类型应为undefined


不知道这个是不是个问题,这种情况是否符合vue的预期

avatar
Jan 26th 2022
defineProps<{
  num?: number
}>()