ankushg
02/15/2022, 1:14 AMSuspendWrapper<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?andylamax
02/15/2022, 5:29 AM