4 ms·
It's exactly like TypeScript. You write type definitions or you find them online, like in TypeScript, then you can call any JavaScript API using the relevant ty
by sjrd 7y ago
It's exactly like TypeScript. You write type definitions or you find them online, like in TypeScript, then you can call any JavaScript API using the relevant types.
Full relevant docs at https://www.scala-js.org/doc/interoperability/ https://www.scala-js.org/doc/interoperability/
- manx 7y agoMany TypeScript type definitions are also automatically converted to ScalaJS: https://github.com/oyvindberg/ScalablyTyped https://github.com/oyvindberg/ScalablyTyped