Skip to content

关于使用 compiler-sfc 编译 script setup ts 文件的问题 #4455

@code-farmer-i

Description

@code-farmer-i

Version

3.2.6

Reproduction link

https://gitee.com/ckang1229/vue-next-script-setup-issuse

Steps to reproduce

yarn
node build.js

What is expected?

props的type属性是可选的,导致生成dts文件时报错

What is actually happening?

将withDefaults.vue编译成withDefaults.ts后,props的type属性的类型应该不是可选的

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions