Closed JSMonk closed 3 years ago
TypeScript declarations can contain declared classes static fields with initializers, like this:
declare class Foo { static readonly BAR = 4 }
Today, we compile the class in the next one:
external open class Foo { companion object { var BAR: Any = 4 } }
We have 2 problems here:
var
Those changes fix the problem with initializers:
external open class Foo { companion object { var BAR: Any = /* 4 */ definedExternally } }
https://github.com/Kotlin/dukat/issues/415
Summary
TypeScript declarations can contain declared classes static fields with initializers, like this:
Today, we compile the class in the next one:
We have 2 problems here:
var
Those changes fix the problem with initializers:
Related Issue
https://github.com/Kotlin/dukat/issues/415