Gleb
02/08/2023, 1:55 AMsuspend foo(): String
in MyClass
. I would like to expose it to the developer using my library. I will need to create expect MyClassAPI
that has different iml for JS and JVM: fooAPI(): Promise<String>
and suspend fooAPI(): String
. Both calling foo internally.
We are still and research phase. Alternative would be to re-implement kotlin library in typescript, but I would like to hear from people with experience opinion on the topic.
Thanks!Evegenii Khokhlov
02/08/2023, 6:03 AMJSExport
in js source set for yours JS target and don’t use actual / expect
for this taskGleb
02/08/2023, 6:02 PMexpect
class with suspend function which I want to export. Currently, I can't really do that because of JSExport restrictions.