re: Should we explicitly type the output of all functions (TypeScript) ? VIEW POST

re: I wouldn't. But if I consider doing, I would also consider writing TSDoc. Actually, if I fallback to JavaScript, I almost always write JSDoc. As ...

Interesting, I would have not imagine that TS was not perfectly type safe for runtime but that's true indeed, because it compiles to JS anyway.
Thanks for sharing these tools, I'll check out !


There is a new Type-checker that does just that for both development and runtime, check out Hegel and the best thing is you already knows it if you work with TypeScript or Flow and also with better type inference.

code of conduct - report abuse