5 ms·
You don't have to transpile anything, you can just put your TS types in JavaScript comments. Or am I missing something?
by nolist_policy 2y ago
You don't have to transpile anything, you can just put your TS types in JavaScript comments. Or am I missing something?
- giaour 2y agoDo you get any editor support when going this route?
- nolist_policy 2y agoYes, vscodium just works.
- Dylan16807 2y agoYou can, but it's ugly and time-consuming. And makes it harder to parse what's actually a comment.