Liquid mention is really a nice easy way to type an entire function, which honestly, I kind of prefer that syntax at Type import directly above a function than all the other junk getting in the way. A lot of us people are saying, oh, yeah, but what about generics? Well, what about one of the ones that I found was function overloading. It's actually quite amazing that I tried really hard to find spots where you could not do things. Even enums,. Enums is like the weird one in TypeScript because it's data and types in one, you know, like everything else in TypeScript is stripped at compile time, but enums are converted to these
In this episode of Syntax, Wes and Scott use the fact that Svelte is being converted from TypeScript to JavaScript with JSDoc to talk about the benefits of working that way, why they are doing it, and what you can do with JSDoc that TypeScript alone doesn’t let you do.
Show Notes
××× SIIIIICK ××× PIIIICKS ×××
Shameless Plugs
Tweet us your tasty treats