Kotlin / dukat

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

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

Closed JSMonk closed 2 years ago

JSMonk commented 2 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