-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
[@vue/cli-plugin-typescript] Is there any way to make type checks work in .ts files in editor? #6173
Comments
This comment has been minimized.
This comment has been minimized.
In
I think it makes in |
you are right. As far as I know, you should define |
Vetur seems to make type checks in 😭 |
I think you need plugin like vue-ts-plugin, Unfortunately, it seems this plugin doesn't support vue3 now. Related issue vuejs/vetur#1322, vuejs/vetur#673, vuejs/vetur#2016 |
Thanks. It may take a long time to make vue3 development tool chains mature. 😄 |
https://github.com/znck/vue-developer-experience It can make type check work. |
using
maybe it would be better to let |
There is vuedx extension in vscode store, which can be used with vetur together (not recommended, I find it seems to slow down my vscode, not quite sure). Before Vue3 DX reach a usable level, I think we still need to wait for some tool chains to reach stable state. For type checking like For type checking in IDE like For packing a |
For people who want to use typescript It does the conversion in place. Firstly copy
Run
Then you can use |
What problem does this feature solve?
I find in vscode (with vetur), props check works in
.vue
file when editing.However it doesn't work in
.ts
file.Is there any way to make type checks work in .ts files?
What does the proposed API look like?
Nil
Vue Info
The text was updated successfully, but these errors were encountered: