Hacker News new | ask | show | jobs
by Hawxy 872 days ago
> What's worse, type checking was largely an afterthought in the development of Vue

I'm not sure what you mean. For Vue 3 it was a priority and extensive work went into exposing types that would make it easier for IDE tooling to integrate. Features like the `defineProps` macro are specifically designed to make TS development easier.

1 comments

You're proving my point.

> For Vue 3 it was a priority

Right, for version 3. And type checking & IDE support still don't work glitch-free.

> Features like the `defineProps` macro are specifically designed to make TS development easier.

As you say, in more recent Vue versions, defineProps is a compiler macro, no longer something you `import […] from 'vue'`. So IDE developers had to put in effort to support it.