JS: change type of MessageEvent.data back JSObject

This commit is contained in:
Alexey Andreev 2023-08-22 17:55:01 +02:00
parent e3bbf12f49
commit f0f3b060e9

View File

@ -15,12 +15,13 @@
*/ */
package org.teavm.jso.dom.events; package org.teavm.jso.dom.events;
import org.teavm.jso.JSObject;
import org.teavm.jso.JSProperty; import org.teavm.jso.JSProperty;
import org.teavm.jso.typedarrays.ArrayBuffer; import org.teavm.jso.typedarrays.ArrayBuffer;
public interface MessageEvent extends Event { public interface MessageEvent extends Event {
@JSProperty @JSProperty
Object getData(); JSObject getData();
@JSProperty("data") @JSProperty("data")
String getDataAsString(); String getDataAsString();