3 ms·
I prefer to just run tsc to check for type errors on GitHub commits instead of needing them for every change. And yeah inline types are more verbose but I pref
by emseetech 2y ago
I prefer to just run tsc to check for type errors on GitHub commits instead of needing them for every change.
And yeah inline types are more verbose but I prefer to use .d.ts files for definitions and then declare with a comment (vim lets me move to definitions with ctrl-] which is nice).
I also come from a Go background so I actively don't like using the more esoteric and complex types that typescript provides.