2 ms·
The TypeScript compiler is weird in a lot of ways. Like, all type checking happens in a single 40,000-line file. And it uses namespaces, which are officially so
by ameliaquining 5y ago
The TypeScript compiler is weird in a lot of ways. Like, all type checking happens in a single 40,000-line file. And it uses namespaces, which are officially soft-deprecated, instead of modules. Point is, I wouldn't look to it as an example of how to write a good TypeScript app.
(Also, use of mostly functions with relatively few classes is common in, e.g., modern React; I don't think you're fighting the language too much if you do it.)