3 ms·
One of the things I learned, not from TypeScript but from other languages with type systems that work similarly, is to minimize the use of type decorations and
by munchbunny 6y ago
One of the things I learned, not from TypeScript but from other languages with type systems that work similarly, is to minimize the use of type decorations and let type inference do most of the heavy lifting.
It took some getting used to because things end up a bit less obvious, but I found that with the IDE's syntax highlighting capabilities, actually inspecting the inferred types isn't as much of an issue. And then you spend less time typing out type names.