Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Trandx opened this issue Aug 23, 2024 · 2 comments
Labels
language-tools related to vue language-tools scope: types

Comments

@Trandx
Copy link

Trandx commented Aug 23, 2024

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

@Trandx Trandx changed the title vuejs don't build correctly some types that are declarated in ts file and they are use in vuejs file vuejs don't build correctly some types that are declarated in ts file and they are used in vuejs file Aug 23, 2024
@edison1105
Copy link
Member

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

@Trandx
Copy link
Author

Trandx commented Sep 5, 2024

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

@edison1105 edison1105 pinned this issue Sep 6, 2024
@edison1105 edison1105 unpinned this issue Sep 6, 2024
@edison1105 edison1105 added the language-tools related to vue language-tools label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language-tools related to vue language-tools scope: types
Projects
None yet
Development

No branches or pull requests

2 participants