I have a `SuspendWrapper<T>` class and I wan...
# javascript
a
I have a
SuspendWrapper<T>
class and I want to expose a
fun subscribe(onSuccess: (item: T) -> Unit, onThrow: (error: Throwable) -> Unit)
to JS If I mark it with a
@JsExport
, I’m currently getting a
Exported declaration uses non-exportable parameter type: (T) -> Unit
error Is there a way to allow this? I don’t think there’s a way to compile-time enforce that
T
is also
JsExport
-able, but it definitely is in this case… Do I just
@Supress
the warning?
a
Just suppress it
🙏 1