scala-js-ts-importer
scala-js-ts-importer copied to clipboard
TypeScript Importer for Scala.js
I'm using scala-js-ts-importer as a key step in generating a facade. It works very well, thanks for doing this. However, in my .d.ts file I have put a lot of...
In case of ``` [info] Running org.scalajs.tools.tsimporter.Main d3.d.ts d3.scala Parse error at 1642.48 identifier expected export function ordinal(): Ordinal; ```
See https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#3.2.9 Example: ``` type CardinalDirection = "North" | "East" | "South" | "West"; ``` Not sure how we should define it in scala because `scala.Symbol` is final just a...
When I import ts files I often get methods like def this(`object`: Object3D, size: Double = ???, hex: Double = ???, linewidth: Double = ???) = this() with a lot...
Sometimes the importer generates code like override var image: js.Any = ??? But it is not possible to override var-s in Scala