0.5.8-rc.4 • Published 2 years ago

dukat v0.5.8-rc.4

Weekly downloads
13,990
License
Apache-2.0
Repository
github
Last release
2 years ago

official JetBrains project GitHub license

Description

Converter of TypeScript definition files to Kotlin declarations

This requires JRE 1.6+ to run. It generates Kotlin files that are compatible with Kotlin 1.1+ (generated declarations are tested against latest stable compiler version)

How to install

The simplest way to use is install the latest version form npm:

npm install -g dukat

Usage

dukat [<options>] <d.ts files>

where possible options include:

    -p  <qualifiedPackageName>      package name for the generated file (by default filename.d.ts renamed to filename.d.kt)
    -m  String                      use this value as @file:JsModule annotation value whenever such annotation occurs
    -d  <path>                      destination directory for files with converted declarations (by default declarations are generated in current directory)
    -v, -version                    print version

How to setup and build

  1. clone this project

    # on Windows-based platforms set following: `git config core.autocrlf true`   
    git clone <this project url>
  2. build

    ./gradlew build
  3. (optional) Run unit tests

./gradlew test -Pdukat.test.failure.always

Recent Changes

0.0.28 - 13'February 2020

  • descriptors support for inline and crosslinine modifiers in descriptors
  • typescript Inlined invoke extension function can have return type
  • typescript Merge vars and interfaces even if they are in different files (but in the same package)
  • typescript Merge classlikes correctly (under some conditions they were copied after merge)
  • typescript Preserve type params while resolving this return type in extension functions

0.0.27 - 07'February 2020

  • build make it possible to build with arbitrary version of kotlin compiler
  • build typescript compiler version updated to 3.5.3
  • descriptors support for compiling with 1.3.70-eap-42
  • typescript Move top level declarations into a separate file whenever it's invalid to keep them with the rest of declarations (that is, when there's file-level JsQualifier or JsModule annotations)
  • idl Don't add import for the same package this file belongs to

see full CHANGELOG

Useful links

0.5.8-rc.4

3 years ago

0.5.8-rc.3

4 years ago

0.5.8-rc.2

4 years ago

0.5.8-rc.1

4 years ago

0.5.8-rc.0

4 years ago

0.5.7

4 years ago

0.5.6

4 years ago

0.5.5

4 years ago

0.5.4

4 years ago

0.5.3

4 years ago

0.5.2

4 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.0.28

4 years ago

0.0.27

4 years ago

0.0.26

4 years ago

0.0.25

4 years ago

0.0.24

4 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago