Re:TypeScript please give us types
by fzeindl on Friday July 07, 2023 @04:01PM
(#36637553)
You can use Kotlin and compile to JavaScript. It's type system is better and the standard library greater scnr
[ Parent
| on HN ]
Exactly. Pick whatever language you like. There are many more options.
This is the way. Best of both worlds although using js libraries is kind of a pain
Kotlin's type system works great for interop with a nominally typed lang like java but for interop with a dynamically typed lang like js and myriad of its libs not designed with type safety in mind, structural typing is far more convenient.