There's no type hinting in TypeScript for a thrown error, but you can just hover over top of the function and say, oh, okay, this throws a not found error. Another interesting thing that I can do that TypeScript straight, I can't do with that. It's return type, the function itself, all of the parameters with a one line comment above that functionThat could be imported from somewhere else. You have to export const load is equal to a function and then type that and then type the read. Well, I guess you're typing the function itself at that point. But the problem with that is that anytime you're copying and pasting stuff, you got
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