| Number of watchers on Github | 185 |
| Number of open issues | 26 |
| Average time to close an issue | about 1 month |
| Main language | Kotlin |
| Average time to merge a PR | 4 days |
| Open pull requests | 0+ |
| Closed pull requests | 8+ |
| Last commit | over 1 year ago |
| Repo Created | over 5 years ago |
| Repo Last Updated | over 1 year ago |
| Size | 7.76 MB |
| Organization / Author | kotlin |
| Contributors | 8 |
| Page Updated | 2018-03-17 |
| Do you use ts2kt? Leave a review! | |
| View open issues (26) | |
| View on github | |
| Fresh, new opensource launches 🚀🚀🚀 | |
|
Trendy new open source projects in your inbox!
View examples
|
|
Converter of TypeScript definition files to Kotlin declarations
This requires Kotlin 1.1.x to run. It generates Kotlin files that are compatible with Kotlin 1.1+.
The simplest way to use is install the latest version form npm:
npm install -g ts2kt
ts2kt [<options>] <d.ts files>
Where possible options include:
-d <path> Destination directory for files with converted declarations, current directory is used by default
-h Print a synopsis of standard options
-X Print a synopsis of advanced options
clone this project
git clone <this project url>
get submodules (https://github.com/DefinitelyTyped/DefinitelyTyped)
git submodule init
git submodule update
install dependencies
npm install
ant -f build.xml update.tools
ant -f build.xml update.node.modules
setup path to node interpreter in IDEA (Languages & Frameworks | Node.js and NPM)
Convert the tool to Javascript. One way is to open the project in IntelliJ and build the project (e.g. Ctrl+Shift+F9).
(optional) Run the unit tests
ant -f build.xml run.test.for.testData
Run the tool in one of these ways:
node out/production/ts2kt/ts2kt.js path/to/input.d.ts path/to/output.kt
git submodule update --remote