Subscribe on changes!

defineProps <Props> (), when Props type definitions use interface declared by d.ts, vue (typescript) compiles and parses to null?

avatar
Apr 21st 2022

What problem does this feature solve?

demo: https://github.com/L1yp/vue3-ts-prop-type

What does the proposed API look like?

support to use declare type in Props definition

avatar
Apr 21st 2022

this is not supported yet. see https://github.com/vuejs/core/issues/4294

avatar
Apr 21st 2022

谢谢