Edoardo Luppi
06/30/2023, 10:26 AM@JsExport
public interface ZSerializable {
public fun serialize(outputStream: ZOutputStream)
}
public expect interface ZOutputStream {
...
}
in `jsMain`:
@JsExport
public actual interface ZOutputStream {
/**
* Returns a copy of the internal byte buffer.
*/
public fun getBuffer(): Buffer
...
}
Kotlin complains about ZOutputStream
not being exportable, and when generating the TS declaration it doesn't import the Node Buffer
type.
Is this working as expected or is it a bug?