how to compile time check strongly typed props in vue templates?
问题 Using Vue with Typescript makes it possible to specify types for props: Strongly typing props of vue components using composition api and typescript typing system However, as far as I can see these props are only checked at runtime. Here's a simple example component. It has two props a , and b . One is a number and the other a string. Additionally b has a validator, it is only valid if it's equal to hi <template> <p>{{a}}</p> </template> <script> import {defineComponent} from 'vue'; export