Skip to content
vic

sjrd/scala-js-ts-importer

TypeScript Importer for Scala.js

sjrd/scala-js-ts-importer.json
{
"createdAt": "2013-07-23T13:59:07Z",
"defaultBranch": "master",
"description": "TypeScript Importer for Scala.js",
"fullName": "sjrd/scala-js-ts-importer",
"homepage": null,
"language": "Scala",
"name": "scala-js-ts-importer",
"pushedAt": "2021-12-21T12:04:41Z",
"stargazersCount": 236,
"topics": [],
"updatedAt": "2025-10-26T17:41:43Z",
"url": "https://github.com/sjrd/scala-js-ts-importer"
}

Importer from TypeScript type definitions to Scala.js

Section titled “Importer from TypeScript type definitions to Scala.js”

This tool reads type definitions files written for TypeScript (.d.ts files) and rewrites them to .scala files usable with Scala.js.

The process is not 100 % accurate, so manual editing is often needed afterwards. This can be improved, but not to perfection, because the features offered by the type systems of TypeScript and Scala.js differ in some subtle ways.

$ sbt 'run somelib.d.ts SomeLib.scala'

The TypeScript Importer for Scala.js is distributed under the Scala License.