We didn't have logic related to merging nested inside namespace with class if the namespace contains an enum.
This PR adds this logic to move namespaceenum inside Kotlin class as a nested static enum class.
Example:
// index.d.ts
export class Foo {}
export namespace Foo {
enum Bar {
A,
B
}
}
// Current result
external open class Foo
// After those changes
external open class Foo {
enum class Bar {
A,
B
}
}
We didn't have logic related to merging nested inside
namespace
withclass
if thenamespace
contains anenum
. This PR adds this logic to movenamespace
enum
inside Kotlinclass
as a nested staticenum class
.Example: