Kotlin / dukat

Converter of <any kind of declarations> to Kotlin external declarations
553 stars 44 forks source link

TypeAliases moved outside of external declarations files are lost #368

Closed Schahen closed 4 years ago

Schahen commented 4 years ago

Following code

declare module "hey" {
    interface Api {}
    type App = Api;
    function createApp(): App;
}

is converted to:

external interface Api

external fun createApp(): App

And fails since App is not defined. However we used to move type aliases outside of JsModule-annotated file and this logic is obviously lost.

Schahen commented 4 years ago

not a bug, was a build problem however investigation helped to pinpoint some different issues.