Kotlin / dukat

Converter of <any kind of declarations> to Kotlin external declarations
557 stars 42 forks source link

Star export from a files which imports from a different module leads to loss of definitions #391

Closed Schahen closed 4 years ago

Schahen commented 4 years ago

Consider following example:

// index.d.ts
export * from "./defs";

// defs.d.ts
import {Api} from "_api";

declare function createApi(): Api

// node_modules/_api/index.d.ts

export declare interface Api {}

Is translated to just

external fun createApi(): Api
Schahen commented 4 years ago

Apart from missing JsModule (for what we have a loot of tasks, this one was is actually fixed and deployed)