vuejs / core

🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
https://vuejs.org/
MIT License
47.54k stars 8.31k forks source link

vuejs don't build correctly some types that are declarated in ts file and they are used in vuejs file #11700

Open Trandx opened 2 months ago

Trandx commented 2 months ago

Vue version

3.4

Link to minimal reproduction

https://github.com/Trandx/ui/tree/develop/ui/src/components/atoms/bouton

Steps to reproduce

you can donwload the repos and build. after it, import a component like NBtn (it's the custom btn) you will see that vscode don't propose some props and props types like 'label' etc... you can check index.d.ts file that is inside the bouton folder of the repo to see all props

What is expected?

wrong vscode documentation

What is actually happening?

vscode don't show me the props documentation of builded components

System Info

No response

Any additional comments?

No response

edison1105 commented 2 months ago

Could you please try using the latest version of vue-tsc?

Trandx commented 2 months ago

I've update my package.json and retry a new build. unfortunaly, the TS doc have not take correctly. When i check the vue.d.ts, i see that all my types have been clearly expressed.

this is the bref capture of the VUE.D.TS file

image