I am trying to generate Typescript definitions for...
# javascript
j
I am trying to generate Typescript definitions for a Kotlin Multiplatform project. I can mark most classes with the
@JsExport
annotation, but it fails if I have defined a
companion object
inside of a class with error:
Copy code
e: java.lang.IllegalStateException: Class SomeClass.Companion with kind: OBJECT
Is there any workaround for this? Or is there a way to mark companion objects as
@JsIgnore
(or something like that)?
😥 1
🚫 1