[TypeScript] Type check is not working on `setup`
Version
3.0.7
Reproduction link
https://codesandbox.io/s/kind-bush-1evm5?file=/src/App.vue
What is expected?
ts-loader should throws error. becuse SetupContext
has no member root
What is actually happening?
ts-loader and ForkTsCheckerWebpackPlugin passed it
Some Questions
- What is the best way to use TS in vue?
- can i use
tsc --noEmit
to make type check on .vue files?
Hello, thank you for taking time filling this issue!
However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).
I hope to see your helper-created issue very soon!