项目作者: dvekeman

项目描述 :
Generate definition files for other languages based on typescript definition files
高级语言: Haskell
项目地址: git://github.com/dvekeman/tsinterop.git
创建时间: 2019-04-16T12:13:20Z
项目社区:https://github.com/dvekeman/tsinterop

开源协议:Apache License 2.0

下载


tsinterop

Goal

Given a TypeScript definition file (somelib.d.ts), generate a definition file for another language.

Additional goals

  • Retain comments
  • Allow splitting up files to avoid huge definition files () (*)

(*) In extreme cases, the IDE will be unable to deal with it. When the original definition file is well documented this will additionally increase the file size!

(**) Splitting up files is challenging and hard to do right but it has some additional advantages. In this first version many shortcuts have been taken!

Current supported languages:

In

  • TypeScript

Out

State

Work in progress and experimental

The initial version of was built to convert smartclient.d.ts (140K lines, including comments)

tsinterop vs ts2kt

ts2kt is the official tool for converting files.
As far as I know it does not support comments neither splitting up the output in several files.

Next steps

See issues section