Andromadus Naruto
06/19/2023, 4:28 PMExported declaration uses non-exportable return type: Either<DomainError, TodoDto>@JsExport@JsExportCLOVIS
06/19/2023, 8:43 PMjsMainclass Foo(
    val a: Int,
) {
    suspend fun foo(): Bar
}@JsName("Foo")
class FooJs internal constructor(
    private val wrapper: Foo,
) {
    constructor(a: Int) : this(Foo(a))
    fun foo() = promise { wrapper.foo() }
}Andromadus Naruto
06/20/2023, 6:57 AM