3 ms·
> there's no way to run a build/compile step for running 'javascript' to catch these type errors before runtime I don't think I follow what you mean here, can
by brundolf 4y ago
> there's no way to run a build/compile step for running 'javascript' to catch these type errors before runtime
I don't think I follow what you mean here, can you clarify?
- xsmasher 4y agoCurrently we run "tsc" to "compile" the code and tell us about type errors. "This method passes as string to something that expects a number" etc. In a world where JS has type notation, we'd need a similar command that could analyze the code without running it.
- brundolf 4y agotsc does that, but yes, you'd still have to run tsc which was part of my original point