News for hackers. Stuff that matters.
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
Re:TypeScript please give us types by andix on Friday July 07, 2023 @04:08PM (#36637627)
Exactly. Pick whatever language you like. There are many more options.
Re:TypeScript please give us types by booi on Friday July 07, 2023 @04:10PM (#36637650)
This is the way. Best of both worlds although using js libraries is kind of a pain
Re:TypeScript please give us types by lf-non on Saturday July 08, 2023 @03:01AM (#36642044)
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.