Kotlin / dukat

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

fix(#381): add support of stdlib identifier collisions. #467

Closed JSMonk closed 3 years ago

JSMonk commented 3 years ago

Summary

Those changes solve the problem with identifiers hidden with TypeScript definitions. For example:

declare interface Any {
  id(a: any): Any;
}

This code snippet is translated into the next one:

external interface Any {
  fun id(a: Any): Any
}

But proposed behaviors is to translate it into:

external interface Any {
  fun id(a: kotlin.Any): Any
}

Related Issue

https://github.com/Kotlin/dukat/issues/381