diff --git a/kotlin-browser/src/jsMain/generated/web/animations/Animation.kt b/kotlin-browser/src/jsMain/generated/web/animations/Animation.kt index a6402d35d244c..3047b46c6c29e 100644 --- a/kotlin-browser/src/jsMain/generated/web/animations/Animation.kt +++ b/kotlin-browser/src/jsMain/generated/web/animations/Animation.kt @@ -36,17 +36,17 @@ open external class Animation( /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel_event) */ - var oncancel: EventHandler? + var oncancel: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish_event) */ - var onfinish: EventHandler? + var onfinish: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/remove_event) */ - var onremove: EventHandler? + var onremove: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pending) diff --git a/kotlin-browser/src/jsMain/generated/web/animations/AnimationEvent.kt b/kotlin-browser/src/jsMain/generated/web/animations/AnimationEvent.kt index 694198c470515..5d982bd49ce87 100644 --- a/kotlin-browser/src/jsMain/generated/web/animations/AnimationEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/animations/AnimationEvent.kt @@ -7,6 +7,7 @@ package web.animations import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -14,10 +15,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent) */ -open external class AnimationEvent( - override val type: EventType, +open external class AnimationEvent( + override val type: EventType>, init: AnimationEventInit = definedExternally, -) : Event, +) : Event, AnimationEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animationName) diff --git a/kotlin-browser/src/jsMain/generated/web/animations/AnimationEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/animations/AnimationEvent.types.kt index 19bf309c5f4bd..5b40e37a589a0 100644 --- a/kotlin-browser/src/jsMain/generated/web/animations/AnimationEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/animations/AnimationEvent.types.kt @@ -11,18 +11,18 @@ import web.events.EventType sealed external interface AnimationEventTypes { @JsValue("animationcancel") - val ANIMATION_CANCEL: EventType + val ANIMATION_CANCEL: EventType> get() = definedExternally @JsValue("animationend") - val ANIMATION_END: EventType + val ANIMATION_END: EventType> get() = definedExternally @JsValue("animationiteration") - val ANIMATION_ITERATION: EventType + val ANIMATION_ITERATION: EventType> get() = definedExternally @JsValue("animationstart") - val ANIMATION_START: EventType + val ANIMATION_START: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/animations/AnimationPlaybackEvent.kt b/kotlin-browser/src/jsMain/generated/web/animations/AnimationPlaybackEvent.kt index 8aad50b3710d3..c56b8a057aa29 100644 --- a/kotlin-browser/src/jsMain/generated/web/animations/AnimationPlaybackEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/animations/AnimationPlaybackEvent.kt @@ -7,15 +7,16 @@ package web.animations import web.events.Event +import web.events.EventTarget import web.events.EventType /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent) */ -open external class AnimationPlaybackEvent( - override val type: EventType, +open external class AnimationPlaybackEvent( + override val type: EventType>, init: AnimationPlaybackEventInit = definedExternally, -) : Event, +) : Event, AnimationPlaybackEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/currentTime) diff --git a/kotlin-browser/src/jsMain/generated/web/animations/AnimationPlaybackEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/animations/AnimationPlaybackEvent.types.kt index ed363ef39e11a..1421697787a5f 100644 --- a/kotlin-browser/src/jsMain/generated/web/animations/AnimationPlaybackEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/animations/AnimationPlaybackEvent.types.kt @@ -11,14 +11,14 @@ import web.events.EventType sealed external interface AnimationPlaybackEventTypes { @JsValue("cancel") - val CANCEL: EventType + val CANCEL: EventType> get() = definedExternally @JsValue("finish") - val FINISH: EventType + val FINISH: EventType> get() = definedExternally @JsValue("remove") - val REMOVE: EventType + val REMOVE: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/audio/AudioScheduledSourceNode.kt b/kotlin-browser/src/jsMain/generated/web/audio/AudioScheduledSourceNode.kt index 5adc3f3666748..c900630d44fa5 100644 --- a/kotlin-browser/src/jsMain/generated/web/audio/AudioScheduledSourceNode.kt +++ b/kotlin-browser/src/jsMain/generated/web/audio/AudioScheduledSourceNode.kt @@ -13,7 +13,7 @@ sealed external class AudioScheduledSourceNode : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/ended_event) */ - var onended: EventHandler? + var onended: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/start) diff --git a/kotlin-browser/src/jsMain/generated/web/audio/AudioWorkletNode.kt b/kotlin-browser/src/jsMain/generated/web/audio/AudioWorkletNode.kt index b057692d02017..2bf438ef663fe 100644 --- a/kotlin-browser/src/jsMain/generated/web/audio/AudioWorkletNode.kt +++ b/kotlin-browser/src/jsMain/generated/web/audio/AudioWorkletNode.kt @@ -19,7 +19,7 @@ external class AudioWorkletNode( /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/processorerror_event) */ - var onprocessorerror: EventHandler? + var onprocessorerror: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/parameters) diff --git a/kotlin-browser/src/jsMain/generated/web/audio/BaseAudioContext.kt b/kotlin-browser/src/jsMain/generated/web/audio/BaseAudioContext.kt index c361eae202464..165cc8744a8fb 100644 --- a/kotlin-browser/src/jsMain/generated/web/audio/BaseAudioContext.kt +++ b/kotlin-browser/src/jsMain/generated/web/audio/BaseAudioContext.kt @@ -40,7 +40,7 @@ sealed external class BaseAudioContext : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/statechange_event) */ - var onstatechange: EventHandler? + var onstatechange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/sampleRate) diff --git a/kotlin-browser/src/jsMain/generated/web/audio/Event.types.kt b/kotlin-browser/src/jsMain/generated/web/audio/Event.types.kt index dc79475187985..63174c2f74a31 100644 --- a/kotlin-browser/src/jsMain/generated/web/audio/Event.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/audio/Event.types.kt @@ -5,8 +5,8 @@ package web.audio import web.events.Event import web.events.EventType -inline val Event.Companion.ENDED: EventType +inline val Event.Companion.ENDED: EventType> get() = EventType("ended") -inline val Event.Companion.STATE_CHANGE: EventType +inline val Event.Companion.STATE_CHANGE: EventType> get() = EventType("statechange") diff --git a/kotlin-browser/src/jsMain/generated/web/audio/OfflineAudioCompletionEvent.kt b/kotlin-browser/src/jsMain/generated/web/audio/OfflineAudioCompletionEvent.kt index 9597e01babd6c..bc826dc5ed497 100644 --- a/kotlin-browser/src/jsMain/generated/web/audio/OfflineAudioCompletionEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/audio/OfflineAudioCompletionEvent.kt @@ -7,6 +7,7 @@ package web.audio import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -14,10 +15,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioCompletionEvent) */ -open external class OfflineAudioCompletionEvent( - override val type: EventType, +open external class OfflineAudioCompletionEvent( + override val type: EventType>, init: OfflineAudioCompletionEventInit, -) : Event, +) : Event, OfflineAudioCompletionEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioCompletionEvent/renderedBuffer) diff --git a/kotlin-browser/src/jsMain/generated/web/audio/OfflineAudioCompletionEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/audio/OfflineAudioCompletionEvent.types.kt index 2a378b6f3db92..2cb6a5c385cc3 100644 --- a/kotlin-browser/src/jsMain/generated/web/audio/OfflineAudioCompletionEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/audio/OfflineAudioCompletionEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface OfflineAudioCompletionEventTypes { @JsValue("complete") - val COMPLETE: EventType + val COMPLETE: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/audio/OfflineAudioContext.kt b/kotlin-browser/src/jsMain/generated/web/audio/OfflineAudioContext.kt index df1bcf43c4164..c1872177e9b35 100644 --- a/kotlin-browser/src/jsMain/generated/web/audio/OfflineAudioContext.kt +++ b/kotlin-browser/src/jsMain/generated/web/audio/OfflineAudioContext.kt @@ -28,7 +28,7 @@ external class OfflineAudioContext( /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/complete_event) */ - var oncomplete: EventHandler? + var oncomplete: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/resume) diff --git a/kotlin-browser/src/jsMain/generated/web/canvas/Event.types.kt b/kotlin-browser/src/jsMain/generated/web/canvas/Event.types.kt index 72346009f832e..e2ab653e1954f 100644 --- a/kotlin-browser/src/jsMain/generated/web/canvas/Event.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/canvas/Event.types.kt @@ -5,8 +5,8 @@ package web.canvas import web.events.Event import web.events.EventType -inline val Event.Companion.CONTEXT_LOST: EventType +inline val Event.Companion.CONTEXT_LOST: EventType> get() = EventType("contextlost") -inline val Event.Companion.CONTEXT_RESTORED: EventType +inline val Event.Companion.CONTEXT_RESTORED: EventType> get() = EventType("contextrestored") diff --git a/kotlin-browser/src/jsMain/generated/web/canvas/OffscreenCanvas.kt b/kotlin-browser/src/jsMain/generated/web/canvas/OffscreenCanvas.kt index 29fa0e9ab5a70..90c68ba9aff06 100644 --- a/kotlin-browser/src/jsMain/generated/web/canvas/OffscreenCanvas.kt +++ b/kotlin-browser/src/jsMain/generated/web/canvas/OffscreenCanvas.kt @@ -31,8 +31,8 @@ external class OffscreenCanvas( * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height) */ var height: JsLong - var oncontextlost: EventHandler? - var oncontextrestored: EventHandler? + var oncontextlost: EventHandler>? + var oncontextrestored: EventHandler>? /** * These attributes return the dimensions of the OffscreenCanvas object's bitmap. diff --git a/kotlin-browser/src/jsMain/generated/web/clipboard/ClipboardEvent.kt b/kotlin-browser/src/jsMain/generated/web/clipboard/ClipboardEvent.kt index ac37b2dba6d4e..a5ebbaf0dd235 100644 --- a/kotlin-browser/src/jsMain/generated/web/clipboard/ClipboardEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/clipboard/ClipboardEvent.kt @@ -8,6 +8,7 @@ package web.clipboard import web.data.DataTransfer import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -15,10 +16,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent) */ -open external class ClipboardEvent( - override val type: EventType, +open external class ClipboardEvent( + override val type: EventType>, init: ClipboardEventInit = definedExternally, -) : Event, +) : Event, ClipboardEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent/clipboardData) diff --git a/kotlin-browser/src/jsMain/generated/web/clipboard/ClipboardEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/clipboard/ClipboardEvent.types.kt index ec94e616a4db9..b67f1e5e77a88 100644 --- a/kotlin-browser/src/jsMain/generated/web/clipboard/ClipboardEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/clipboard/ClipboardEvent.types.kt @@ -11,14 +11,14 @@ import web.events.EventType sealed external interface ClipboardEventTypes { @JsValue("copy") - val COPY: EventType + val COPY: EventType> get() = definedExternally @JsValue("cut") - val CUT: EventType + val CUT: EventType> get() = definedExternally @JsValue("paste") - val PASTE: EventType + val PASTE: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/codecs/Event.types.kt b/kotlin-browser/src/jsMain/generated/web/codecs/Event.types.kt index 5d750f0cdf1ff..16cb8fc2bd1fb 100644 --- a/kotlin-browser/src/jsMain/generated/web/codecs/Event.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/codecs/Event.types.kt @@ -5,5 +5,5 @@ package web.codecs import web.events.Event import web.events.EventType -inline val Event.Companion.DEQUEUE: EventType +inline val Event.Companion.DEQUEUE: EventType> get() = EventType("dequeue") diff --git a/kotlin-browser/src/jsMain/generated/web/codecs/VideoDecoder.kt b/kotlin-browser/src/jsMain/generated/web/codecs/VideoDecoder.kt index 77a45c869bd44..b5ea4f4113607 100644 --- a/kotlin-browser/src/jsMain/generated/web/codecs/VideoDecoder.kt +++ b/kotlin-browser/src/jsMain/generated/web/codecs/VideoDecoder.kt @@ -20,7 +20,7 @@ external class VideoDecoder( * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize) */ val decodeQueueSize: Int - var ondequeue: EventHandler? + var ondequeue: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state) diff --git a/kotlin-browser/src/jsMain/generated/web/codecs/VideoEncoder.kt b/kotlin-browser/src/jsMain/generated/web/codecs/VideoEncoder.kt index 9c25d1a84ea88..82c2757ded2d5 100644 --- a/kotlin-browser/src/jsMain/generated/web/codecs/VideoEncoder.kt +++ b/kotlin-browser/src/jsMain/generated/web/codecs/VideoEncoder.kt @@ -20,7 +20,7 @@ external class VideoEncoder( * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize) */ val encodeQueueSize: Int - var ondequeue: EventHandler? + var ondequeue: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state) diff --git a/kotlin-browser/src/jsMain/generated/web/components/Event.types.kt b/kotlin-browser/src/jsMain/generated/web/components/Event.types.kt index 8e4446fa21984..fbf89d812f815 100644 --- a/kotlin-browser/src/jsMain/generated/web/components/Event.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/components/Event.types.kt @@ -5,5 +5,5 @@ package web.components import web.events.Event import web.events.EventType -inline val Event.Companion.SLOT_CHANGE: EventType +inline val Event.Companion.SLOT_CHANGE: EventType> get() = EventType("slotchange") diff --git a/kotlin-browser/src/jsMain/generated/web/components/ShadowRoot.kt b/kotlin-browser/src/jsMain/generated/web/components/ShadowRoot.kt index 478d6769674aa..86fdb646d79f7 100644 --- a/kotlin-browser/src/jsMain/generated/web/components/ShadowRoot.kt +++ b/kotlin-browser/src/jsMain/generated/web/components/ShadowRoot.kt @@ -30,7 +30,7 @@ sealed external class ShadowRoot : * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/mode) */ val mode: ShadowRootMode - var onslotchange: EventHandler? + var onslotchange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment) diff --git a/kotlin-browser/src/jsMain/generated/web/csp/SecurityPolicyViolationEvent.kt b/kotlin-browser/src/jsMain/generated/web/csp/SecurityPolicyViolationEvent.kt index d33f0d0c35c8e..23832b2a76dca 100644 --- a/kotlin-browser/src/jsMain/generated/web/csp/SecurityPolicyViolationEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/csp/SecurityPolicyViolationEvent.kt @@ -7,6 +7,7 @@ package web.csp import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -14,10 +15,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent) */ -open external class SecurityPolicyViolationEvent( - override val type: EventType, +open external class SecurityPolicyViolationEvent( + override val type: EventType>, init: SecurityPolicyViolationEventInit = definedExternally, -) : Event, +) : Event, SecurityPolicyViolationEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/blockedURI) diff --git a/kotlin-browser/src/jsMain/generated/web/csp/SecurityPolicyViolationEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/csp/SecurityPolicyViolationEvent.types.kt index 649850cd6447b..44bf395212505 100644 --- a/kotlin-browser/src/jsMain/generated/web/csp/SecurityPolicyViolationEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/csp/SecurityPolicyViolationEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface SecurityPolicyViolationEventTypes { @JsValue("securitypolicyviolation") - val SECURITY_POLICY_VIOLATION: EventType + val SECURITY_POLICY_VIOLATION: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/cssom/MediaQueryList.kt b/kotlin-browser/src/jsMain/generated/web/cssom/MediaQueryList.kt index 569e35c06dd43..ddd2ab535cd28 100644 --- a/kotlin-browser/src/jsMain/generated/web/cssom/MediaQueryList.kt +++ b/kotlin-browser/src/jsMain/generated/web/cssom/MediaQueryList.kt @@ -25,5 +25,5 @@ sealed external class MediaQueryList : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/change_event) */ - var onchange: EventHandler? + var onchange: EventHandler>? } diff --git a/kotlin-browser/src/jsMain/generated/web/cssom/MediaQueryListEvent.kt b/kotlin-browser/src/jsMain/generated/web/cssom/MediaQueryListEvent.kt index e34878788429c..d15ca46069b0c 100644 --- a/kotlin-browser/src/jsMain/generated/web/cssom/MediaQueryListEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/cssom/MediaQueryListEvent.kt @@ -7,15 +7,16 @@ package web.cssom import web.events.Event +import web.events.EventTarget import web.events.EventType /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent) */ -open external class MediaQueryListEvent( - override val type: EventType, +open external class MediaQueryListEvent( + override val type: EventType>, init: MediaQueryListEventInit = definedExternally, -) : Event, +) : Event, MediaQueryListEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent/matches) diff --git a/kotlin-browser/src/jsMain/generated/web/cssom/MediaQueryListEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/cssom/MediaQueryListEvent.types.kt index 270a12794302c..08ed3b5da75f7 100644 --- a/kotlin-browser/src/jsMain/generated/web/cssom/MediaQueryListEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/cssom/MediaQueryListEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface MediaQueryListEventTypes { @JsValue("change") - val CHANGE: EventType + val CHANGE: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/cssom/TransitionEvent.kt b/kotlin-browser/src/jsMain/generated/web/cssom/TransitionEvent.kt index d65c5d677d253..ad16b8ab9031b 100644 --- a/kotlin-browser/src/jsMain/generated/web/cssom/TransitionEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/cssom/TransitionEvent.kt @@ -7,6 +7,7 @@ package web.cssom import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -14,10 +15,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent) */ -open external class TransitionEvent( - override val type: EventType, +open external class TransitionEvent( + override val type: EventType>, init: TransitionEventInit = definedExternally, -) : Event, +) : Event, TransitionEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/elapsedTime) diff --git a/kotlin-browser/src/jsMain/generated/web/cssom/TransitionEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/cssom/TransitionEvent.types.kt index 27ae8e8d3df4e..76b5c17a38552 100644 --- a/kotlin-browser/src/jsMain/generated/web/cssom/TransitionEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/cssom/TransitionEvent.types.kt @@ -11,18 +11,18 @@ import web.events.EventType sealed external interface TransitionEventTypes { @JsValue("transitioncancel") - val TRANSITION_CANCEL: EventType + val TRANSITION_CANCEL: EventType> get() = definedExternally @JsValue("transitionend") - val TRANSITION_END: EventType + val TRANSITION_END: EventType> get() = definedExternally @JsValue("transitionrun") - val TRANSITION_RUN: EventType + val TRANSITION_RUN: EventType> get() = definedExternally @JsValue("transitionstart") - val TRANSITION_START: EventType + val TRANSITION_START: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/device/DeviceMotionEvent.kt b/kotlin-browser/src/jsMain/generated/web/device/DeviceMotionEvent.kt index 02c051960fdf9..41814898184f4 100644 --- a/kotlin-browser/src/jsMain/generated/web/device/DeviceMotionEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/device/DeviceMotionEvent.kt @@ -7,6 +7,7 @@ package web.device import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -15,10 +16,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent) */ -open external class DeviceMotionEvent( - override val type: EventType, +open external class DeviceMotionEvent( + override val type: EventType>, init: DeviceMotionEventInit = definedExternally, -) : Event { +) : Event { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/acceleration) */ diff --git a/kotlin-browser/src/jsMain/generated/web/device/DeviceMotionEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/device/DeviceMotionEvent.types.kt index 74f6ae540d238..efbaca5701048 100644 --- a/kotlin-browser/src/jsMain/generated/web/device/DeviceMotionEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/device/DeviceMotionEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface DeviceMotionEventTypes { @JsValue("devicemotion") - val DEVICE_MOTION: EventType + val DEVICE_MOTION: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/device/DeviceOrientationEvent.kt b/kotlin-browser/src/jsMain/generated/web/device/DeviceOrientationEvent.kt index 6ed2ad49f929f..0ce8704710fd9 100644 --- a/kotlin-browser/src/jsMain/generated/web/device/DeviceOrientationEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/device/DeviceOrientationEvent.kt @@ -7,6 +7,7 @@ package web.device import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -15,10 +16,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent) */ -open external class DeviceOrientationEvent( - override val type: EventType, +open external class DeviceOrientationEvent( + override val type: EventType>, init: DeviceOrientationEventInit = definedExternally, -) : Event, +) : Event, DeviceOrientationEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/absolute) diff --git a/kotlin-browser/src/jsMain/generated/web/device/DeviceOrientationEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/device/DeviceOrientationEvent.types.kt index ebe28dbffc4df..6730f9ddf67d5 100644 --- a/kotlin-browser/src/jsMain/generated/web/device/DeviceOrientationEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/device/DeviceOrientationEvent.types.kt @@ -11,10 +11,10 @@ import web.events.EventType sealed external interface DeviceOrientationEventTypes { @JsValue("deviceorientation") - val DEVICE_ORIENTATION: EventType + val DEVICE_ORIENTATION: EventType> get() = definedExternally @JsValue("deviceorientationabsolute") - val DEVICE_ORIENTATION_ABSOLUTE: EventType + val DEVICE_ORIENTATION_ABSOLUTE: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/dom/Document.kt b/kotlin-browser/src/jsMain/generated/web/dom/Document.kt index ec2ca17e52b1a..de7d4b146efbe 100644 --- a/kotlin-browser/src/jsMain/generated/web/dom/Document.kt +++ b/kotlin-browser/src/jsMain/generated/web/dom/Document.kt @@ -195,22 +195,22 @@ open external class Document : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenchange_event) */ - var onfullscreenchange: EventHandler? + var onfullscreenchange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenerror_event) */ - var onfullscreenerror: EventHandler? + var onfullscreenerror: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockchange_event) */ - var onpointerlockchange: EventHandler? + var onpointerlockchange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockerror_event) */ - var onpointerlockerror: EventHandler? + var onpointerlockerror: EventHandler>? /** * Fires when the state of the object has changed. @@ -218,12 +218,12 @@ open external class Document : * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readystatechange_event) */ - var onreadystatechange: EventHandler? + var onreadystatechange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilitychange_event) */ - var onvisibilitychange: EventHandler? + var onvisibilitychange: EventHandler>? override val ownerDocument: Void /** diff --git a/kotlin-browser/src/jsMain/generated/web/dom/Element.kt b/kotlin-browser/src/jsMain/generated/web/dom/Element.kt index f49b392420f2a..8969d9ccafb73 100644 --- a/kotlin-browser/src/jsMain/generated/web/dom/Element.kt +++ b/kotlin-browser/src/jsMain/generated/web/dom/Element.kt @@ -104,12 +104,12 @@ abstract external class Element : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenchange_event) */ - var onfullscreenchange: EventHandler? + var onfullscreenchange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenerror_event) */ - var onfullscreenerror: EventHandler? + var onfullscreenerror: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) diff --git a/kotlin-browser/src/jsMain/generated/web/dom/Event.types.kt b/kotlin-browser/src/jsMain/generated/web/dom/Event.types.kt index 582a88b997d2e..6f9d97f587a77 100644 --- a/kotlin-browser/src/jsMain/generated/web/dom/Event.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/dom/Event.types.kt @@ -5,134 +5,134 @@ package web.dom import web.events.Event import web.events.EventType -inline val Event.Companion.DOM_CONTENT_LOADED: EventType +inline val Event.Companion.DOM_CONTENT_LOADED: EventType> get() = EventType("DOMContentLoaded") -inline val Event.Companion.BEFORE_TOGGLE: EventType +inline val Event.Companion.BEFORE_TOGGLE: EventType> get() = EventType("beforetoggle") -inline val Event.Companion.CAN_PLAY: EventType +inline val Event.Companion.CAN_PLAY: EventType> get() = EventType("canplay") -inline val Event.Companion.CAN_PLAY_THROUGH: EventType +inline val Event.Companion.CAN_PLAY_THROUGH: EventType> get() = EventType("canplaythrough") -inline val Event.Companion.CUE_CHANGE: EventType +inline val Event.Companion.CUE_CHANGE: EventType> get() = EventType("cuechange") -inline val Event.Companion.DURATION_CHANGE: EventType +inline val Event.Companion.DURATION_CHANGE: EventType> get() = EventType("durationchange") -inline val Event.Companion.EMPTIED: EventType +inline val Event.Companion.EMPTIED: EventType> get() = EventType("emptied") -inline val Event.Companion.ENDED: EventType +inline val Event.Companion.ENDED: EventType> get() = EventType("ended") -inline val Event.Companion.FULLSCREEN_CHANGE: EventType +inline val Event.Companion.FULLSCREEN_CHANGE: EventType> get() = EventType("fullscreenchange") -inline val Event.Companion.FULLSCREEN_ERROR: EventType +inline val Event.Companion.FULLSCREEN_ERROR: EventType> get() = EventType("fullscreenerror") -inline val Event.Companion.INPUT: EventType +inline val Event.Companion.INPUT: EventType> get() = EventType("input") -inline val Event.Companion.INVALID: EventType +inline val Event.Companion.INVALID: EventType> get() = EventType("invalid") -inline val Event.Companion.LOAD: EventType +inline val Event.Companion.LOAD: EventType> get() = EventType("load") -inline val Event.Companion.LOADED_DATA: EventType +inline val Event.Companion.LOADED_DATA: EventType> get() = EventType("loadeddata") -inline val Event.Companion.LOADED_METADATA: EventType +inline val Event.Companion.LOADED_METADATA: EventType> get() = EventType("loadedmetadata") -inline val Event.Companion.LOAD_START: EventType +inline val Event.Companion.LOAD_START: EventType> get() = EventType("loadstart") -inline val Event.Companion.PAUSE: EventType +inline val Event.Companion.PAUSE: EventType> get() = EventType("pause") -inline val Event.Companion.PLAY: EventType +inline val Event.Companion.PLAY: EventType> get() = EventType("play") -inline val Event.Companion.PLAYING: EventType +inline val Event.Companion.PLAYING: EventType> get() = EventType("playing") -inline val Event.Companion.POINTER_LOCK_CHANGE: EventType +inline val Event.Companion.POINTER_LOCK_CHANGE: EventType> get() = EventType("pointerlockchange") -inline val Event.Companion.POINTER_LOCK_ERROR: EventType +inline val Event.Companion.POINTER_LOCK_ERROR: EventType> get() = EventType("pointerlockerror") -inline val Event.Companion.RATE_CHANGE: EventType +inline val Event.Companion.RATE_CHANGE: EventType> get() = EventType("ratechange") -inline val Event.Companion.READY_STATE_CHANGE: EventType +inline val Event.Companion.READY_STATE_CHANGE: EventType> get() = EventType("readystatechange") -inline val Event.Companion.RESET: EventType +inline val Event.Companion.RESET: EventType> get() = EventType("reset") -inline val Event.Companion.SCROLL: EventType +inline val Event.Companion.SCROLL: EventType> get() = EventType("scroll") -inline val Event.Companion.SCROLL_END: EventType +inline val Event.Companion.SCROLL_END: EventType> get() = EventType("scrollend") -inline val Event.Companion.SEEKED: EventType +inline val Event.Companion.SEEKED: EventType> get() = EventType("seeked") -inline val Event.Companion.SEEKING: EventType +inline val Event.Companion.SEEKING: EventType> get() = EventType("seeking") -inline val Event.Companion.SELECT: EventType +inline val Event.Companion.SELECT: EventType> get() = EventType("select") -inline val Event.Companion.SELECTION_CHANGE: EventType +inline val Event.Companion.SELECTION_CHANGE: EventType> get() = EventType("selectionchange") -inline val Event.Companion.SELECT_START: EventType +inline val Event.Companion.SELECT_START: EventType> get() = EventType("selectstart") -inline val Event.Companion.SLOT_CHANGE: EventType +inline val Event.Companion.SLOT_CHANGE: EventType> get() = EventType("slotchange") -inline val Event.Companion.STALLED: EventType +inline val Event.Companion.STALLED: EventType> get() = EventType("stalled") -inline val Event.Companion.SUSPEND: EventType +inline val Event.Companion.SUSPEND: EventType> get() = EventType("suspend") -inline val Event.Companion.TIME_UPDATE: EventType +inline val Event.Companion.TIME_UPDATE: EventType> get() = EventType("timeupdate") -inline val Event.Companion.TOGGLE: EventType +inline val Event.Companion.TOGGLE: EventType> get() = EventType("toggle") -inline val Event.Companion.VISIBILITY_CHANGE: EventType +inline val Event.Companion.VISIBILITY_CHANGE: EventType> get() = EventType("visibilitychange") -inline val Event.Companion.VOLUME_CHANGE: EventType +inline val Event.Companion.VOLUME_CHANGE: EventType> get() = EventType("volumechange") -inline val Event.Companion.WAITING: EventType +inline val Event.Companion.WAITING: EventType> get() = EventType("waiting") -inline val Event.Companion.WEBKIT_ANIMATION_END: EventType +inline val Event.Companion.WEBKIT_ANIMATION_END: EventType> get() = EventType("webkitanimationend") -inline val Event.Companion.WEBKIT_ANIMATION_ITERATION: EventType +inline val Event.Companion.WEBKIT_ANIMATION_ITERATION: EventType> get() = EventType("webkitanimationiteration") -inline val Event.Companion.WEBKIT_ANIMATION_START: EventType +inline val Event.Companion.WEBKIT_ANIMATION_START: EventType> get() = EventType("webkitanimationstart") -inline val Event.Companion.WEBKIT_FULLSCREEN_CHANGE: EventType +inline val Event.Companion.WEBKIT_FULLSCREEN_CHANGE: EventType> get() = EventType("webkitfullscreenchange") -inline val Event.Companion.WEBKIT_TRANSITION_END: EventType +inline val Event.Companion.WEBKIT_TRANSITION_END: EventType> get() = EventType("webkittransitionend") diff --git a/kotlin-browser/src/jsMain/generated/web/dom/GlobalEventHandlers.kt b/kotlin-browser/src/jsMain/generated/web/dom/GlobalEventHandlers.kt index 98e28e3087fd7..18071f0c7a855 100644 --- a/kotlin-browser/src/jsMain/generated/web/dom/GlobalEventHandlers.kt +++ b/kotlin-browser/src/jsMain/generated/web/dom/GlobalEventHandlers.kt @@ -20,56 +20,56 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event) */ - var onabort: EventHandler? + var onabort: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */ - var onanimationcancel: EventHandler? + var onanimationcancel: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */ - var onanimationend: EventHandler? + var onanimationend: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */ - var onanimationiteration: EventHandler? + var onanimationiteration: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */ - var onanimationstart: EventHandler? + var onanimationstart: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */ - var onauxclick: EventHandler? + var onauxclick: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */ - var onbeforeinput: EventHandler? + var onbeforeinput: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */ - var onbeforetoggle: EventHandler? + var onbeforetoggle: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -79,14 +79,14 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */ - var onblur: EventHandler? + var onblur: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ - var oncancel: EventHandler? + var oncancel: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -96,14 +96,14 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */ - var oncanplay: EventHandler? + var oncanplay: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */ - var oncanplaythrough: EventHandler? + var oncanplaythrough: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -113,7 +113,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event) */ - var onchange: EventHandler? + var onchange: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -123,14 +123,14 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event) */ - var onclick: EventHandler? + var onclick: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ - var onclose: EventHandler? + var onclose: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -140,28 +140,28 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */ - var oncontextmenu: EventHandler? + var oncontextmenu: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */ - var oncopy: EventHandler? + var oncopy: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */ - var oncuechange: EventHandler? + var oncuechange: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */ - var oncut: EventHandler? + var oncut: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -171,7 +171,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event) */ - var ondblclick: EventHandler? + var ondblclick: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -181,7 +181,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event) */ - var ondrag: EventHandler? + var ondrag: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -191,7 +191,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event) */ - var ondragend: EventHandler? + var ondragend: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -201,7 +201,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event) */ - var ondragenter: EventHandler? + var ondragenter: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -211,7 +211,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event) */ - var ondragleave: EventHandler? + var ondragleave: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -221,7 +221,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event) */ - var ondragover: EventHandler? + var ondragover: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -231,14 +231,14 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event) */ - var ondragstart: EventHandler? + var ondragstart: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */ - var ondrop: EventHandler? + var ondrop: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -248,7 +248,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event) */ - var ondurationchange: EventHandler? + var ondurationchange: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -258,7 +258,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event) */ - var onemptied: EventHandler? + var onemptied: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -268,7 +268,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */ - var onended: EventHandler? + var onended: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -288,35 +288,35 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */ - var onfocus: EventHandler? + var onfocus: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */ - var onformdata: EventHandler? + var onformdata: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */ - var ongotpointercapture: EventHandler? + var ongotpointercapture: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */ - var oninput: EventHandler? + var oninput: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */ - var oninvalid: EventHandler? + var oninvalid: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -326,7 +326,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event) */ - var onkeydown: EventHandler? + var onkeydown: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -336,7 +336,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event) */ - var onkeyup: EventHandler? + var onkeyup: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -346,7 +346,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/load_event) */ - var onload: EventHandler? + var onload: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -356,7 +356,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event) */ - var onloadeddata: EventHandler? + var onloadeddata: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -366,7 +366,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event) */ - var onloadedmetadata: EventHandler? + var onloadedmetadata: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -376,14 +376,14 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event) */ - var onloadstart: EventHandler? + var onloadstart: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lostpointercapture_event) */ - var onlostpointercapture: EventHandler? + var onlostpointercapture: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -393,21 +393,21 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event) */ - var onmousedown: EventHandler? + var onmousedown: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */ - var onmouseenter: EventHandler? + var onmouseenter: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */ - var onmouseleave: EventHandler? + var onmouseleave: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -417,7 +417,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event) */ - var onmousemove: EventHandler? + var onmousemove: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -427,7 +427,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event) */ - var onmouseout: EventHandler? + var onmouseout: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -437,7 +437,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event) */ - var onmouseover: EventHandler? + var onmouseover: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -447,14 +447,14 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event) */ - var onmouseup: EventHandler? + var onmouseup: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */ - var onpaste: EventHandler? + var onpaste: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -464,7 +464,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event) */ - var onpause: EventHandler? + var onpause: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -474,7 +474,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event) */ - var onplay: EventHandler? + var onplay: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -484,63 +484,63 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event) */ - var onplaying: EventHandler? + var onplaying: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */ - var onpointercancel: EventHandler? + var onpointercancel: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */ - var onpointerdown: EventHandler? + var onpointerdown: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */ - var onpointerenter: EventHandler? + var onpointerenter: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */ - var onpointerleave: EventHandler? + var onpointerleave: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */ - var onpointermove: EventHandler? + var onpointermove: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */ - var onpointerout: EventHandler? + var onpointerout: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */ - var onpointerover: EventHandler? + var onpointerover: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */ - var onpointerup: EventHandler? + var onpointerup: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -550,7 +550,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */ - var onprogress: EventHandler? + var onprogress: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -560,7 +560,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event) */ - var onratechange: EventHandler? + var onratechange: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -570,14 +570,14 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event) */ - var onreset: EventHandler? + var onreset: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */ - var onresize: EventHandler? + var onresize: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -587,21 +587,21 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event) */ - var onscroll: EventHandler? + var onscroll: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */ - var onscrollend: EventHandler? + var onscrollend: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */ - var onsecuritypolicyviolation: EventHandler? + var onsecuritypolicyviolation: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -611,7 +611,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event) */ - var onseeked: EventHandler? + var onseeked: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -621,7 +621,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event) */ - var onseeking: EventHandler? + var onseeking: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -631,28 +631,28 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event) */ - var onselect: EventHandler? + var onselect: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */ - var onselectionchange: EventHandler? + var onselectionchange: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */ - var onselectstart: EventHandler? + var onselectstart: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */ - var onslotchange: EventHandler? + var onslotchange: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -662,14 +662,14 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event) */ - var onstalled: EventHandler? + var onstalled: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */ - var onsubmit: EventHandler? + var onsubmit: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -679,7 +679,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event) */ - var onsuspend: EventHandler? + var onsuspend: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -689,70 +689,70 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event) */ - var ontimeupdate: EventHandler? + var ontimeupdate: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */ - var ontoggle: EventHandler? + var ontoggle: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */ - var ontouchcancel: EventHandler? + var ontouchcancel: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */ - var ontouchend: EventHandler? + var ontouchend: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */ - var ontouchmove: EventHandler? + var ontouchmove: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */ - var ontouchstart: EventHandler? + var ontouchstart: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */ - var ontransitioncancel: EventHandler? + var ontransitioncancel: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */ - var ontransitionend: EventHandler? + var ontransitionend: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */ - var ontransitionrun: EventHandler? + var ontransitionrun: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */ - var ontransitionstart: EventHandler? + var ontransitionstart: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -762,7 +762,7 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event) */ - var onvolumechange: EventHandler? + var onvolumechange: EventHandler>? get() = definedExternally set(value) = definedExternally @@ -772,14 +772,14 @@ external interface GlobalEventHandlers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event) */ - var onwaiting: EventHandler? + var onwaiting: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */ - var onwheel: EventHandler? + var onwheel: EventHandler>? get() = definedExternally set(value) = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/errors/ErrorEvent.kt b/kotlin-browser/src/jsMain/generated/web/errors/ErrorEvent.kt index a8e0db4879bd5..642ea43f95c21 100644 --- a/kotlin-browser/src/jsMain/generated/web/errors/ErrorEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/errors/ErrorEvent.kt @@ -7,6 +7,7 @@ package web.errors import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -14,10 +15,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent) */ -open external class ErrorEvent( - override val type: EventType, +open external class ErrorEvent( + override val type: EventType>, init: ErrorEventInit = definedExternally, -) : Event, +) : Event, ErrorEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) diff --git a/kotlin-browser/src/jsMain/generated/web/errors/ErrorEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/errors/ErrorEvent.types.kt index 65ccf30669215..2b214d6a6c61b 100644 --- a/kotlin-browser/src/jsMain/generated/web/errors/ErrorEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/errors/ErrorEvent.types.kt @@ -11,10 +11,10 @@ import web.events.EventType sealed external interface ErrorEventTypes { @JsValue("error") - val ERROR: EventType + val ERROR: EventType> get() = definedExternally @JsValue("processorerror") - val PROCESSOR_ERROR: EventType + val PROCESSOR_ERROR: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/file/FileReader.kt b/kotlin-browser/src/jsMain/generated/web/file/FileReader.kt index f04a7c52c16da..e016d76b395bd 100644 --- a/kotlin-browser/src/jsMain/generated/web/file/FileReader.kt +++ b/kotlin-browser/src/jsMain/generated/web/file/FileReader.kt @@ -23,32 +23,32 @@ open external class FileReader : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort_event) */ - var onabort: EventHandler? + var onabort: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */ - var onerror: EventHandler? + var onerror: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */ - var onload: EventHandler? + var onload: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */ - var onloadend: EventHandler? + var onloadend: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */ - var onloadstart: EventHandler? + var onloadstart: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */ - var onprogress: EventHandler? + var onprogress: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState) diff --git a/kotlin-browser/src/jsMain/generated/web/fonts/FontFaceSet.kt b/kotlin-browser/src/jsMain/generated/web/fonts/FontFaceSet.kt index 96a74f282eac4..9a719c37ceef5 100644 --- a/kotlin-browser/src/jsMain/generated/web/fonts/FontFaceSet.kt +++ b/kotlin-browser/src/jsMain/generated/web/fonts/FontFaceSet.kt @@ -21,17 +21,17 @@ sealed external interface FontFaceSet : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */ - var onloading: EventHandler? + var onloading: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */ - var onloadingdone: EventHandler? + var onloadingdone: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */ - var onloadingerror: EventHandler? + var onloadingerror: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) diff --git a/kotlin-browser/src/jsMain/generated/web/fonts/FontFaceSetLoadEvent.kt b/kotlin-browser/src/jsMain/generated/web/fonts/FontFaceSetLoadEvent.kt index 489d3f0286045..f133ab3e559e3 100644 --- a/kotlin-browser/src/jsMain/generated/web/fonts/FontFaceSetLoadEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/fonts/FontFaceSetLoadEvent.kt @@ -8,15 +8,16 @@ package web.fonts import js.array.ReadonlyArray import web.events.Event +import web.events.EventTarget import web.events.EventType /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) */ -open external class FontFaceSetLoadEvent( - override val type: EventType, +open external class FontFaceSetLoadEvent( + override val type: EventType>, init: FontFaceSetLoadEventInit = definedExternally, -) : Event, +) : Event, FontFaceSetLoadEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces) diff --git a/kotlin-browser/src/jsMain/generated/web/fonts/FontFaceSetLoadEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/fonts/FontFaceSetLoadEvent.types.kt index 71d1106b568c1..34e196d38ae14 100644 --- a/kotlin-browser/src/jsMain/generated/web/fonts/FontFaceSetLoadEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/fonts/FontFaceSetLoadEvent.types.kt @@ -11,14 +11,14 @@ import web.events.EventType sealed external interface FontFaceSetLoadEventTypes { @JsValue("loading") - val LOADING: EventType + val LOADING: EventType> get() = definedExternally @JsValue("loadingdone") - val LOADING_DONE: EventType + val LOADING_DONE: EventType> get() = definedExternally @JsValue("loadingerror") - val LOADING_ERROR: EventType + val LOADING_ERROR: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/form/FormDataEvent.kt b/kotlin-browser/src/jsMain/generated/web/form/FormDataEvent.kt index 7e87b5dce302a..1ae6a9ce40c11 100644 --- a/kotlin-browser/src/jsMain/generated/web/form/FormDataEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/form/FormDataEvent.kt @@ -7,15 +7,16 @@ package web.form import web.events.Event +import web.events.EventTarget import web.events.EventType /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent) */ -open external class FormDataEvent( - override val type: EventType, +open external class FormDataEvent( + override val type: EventType>, init: FormDataEventInit, -) : Event, +) : Event, FormDataEventInit { /** * Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted. diff --git a/kotlin-browser/src/jsMain/generated/web/form/FormDataEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/form/FormDataEvent.types.kt index dd88af3726877..c0670f8d5f636 100644 --- a/kotlin-browser/src/jsMain/generated/web/form/FormDataEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/form/FormDataEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface FormDataEventTypes { @JsValue("formdata") - val FORM_DATA: EventType + val FORM_DATA: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/form/SubmitEvent.kt b/kotlin-browser/src/jsMain/generated/web/form/SubmitEvent.kt index e6d59acb3f66f..14cda8fdb0207 100644 --- a/kotlin-browser/src/jsMain/generated/web/form/SubmitEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/form/SubmitEvent.kt @@ -7,16 +7,17 @@ package web.form import web.events.Event +import web.events.EventTarget import web.events.EventType import web.html.HTMLElement /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubmitEvent) */ -open external class SubmitEvent( - override val type: EventType, +open external class SubmitEvent( + override val type: EventType>, init: SubmitEventInit = definedExternally, -) : Event, +) : Event, SubmitEventInit { /** * Returns the element representing the submit button that triggered the form submission, or null if the submission was not triggered by a button. diff --git a/kotlin-browser/src/jsMain/generated/web/form/SubmitEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/form/SubmitEvent.types.kt index 914fe8531990f..94212a0a59fce 100644 --- a/kotlin-browser/src/jsMain/generated/web/form/SubmitEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/form/SubmitEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface SubmitEventTypes { @JsValue("submit") - val SUBMIT: EventType + val SUBMIT: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/gamepad/GamepadEvent.kt b/kotlin-browser/src/jsMain/generated/web/gamepad/GamepadEvent.kt index 88a22b59495ec..6faabb33a432a 100644 --- a/kotlin-browser/src/jsMain/generated/web/gamepad/GamepadEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/gamepad/GamepadEvent.kt @@ -7,6 +7,7 @@ package web.gamepad import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -15,10 +16,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent) */ -open external class GamepadEvent( - override val type: EventType, +open external class GamepadEvent( + override val type: EventType>, init: GamepadEventInit, -) : Event, +) : Event, GamepadEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent/gamepad) diff --git a/kotlin-browser/src/jsMain/generated/web/gamepad/GamepadEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/gamepad/GamepadEvent.types.kt index f9f8855e68546..5234cb091b17b 100644 --- a/kotlin-browser/src/jsMain/generated/web/gamepad/GamepadEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/gamepad/GamepadEvent.types.kt @@ -11,10 +11,10 @@ import web.events.EventType sealed external interface GamepadEventTypes { @JsValue("gamepadconnected") - val GAMEPAD_CONNECTED: EventType + val GAMEPAD_CONNECTED: EventType> get() = definedExternally @JsValue("gamepaddisconnected") - val GAMEPAD_DISCONNECTED: EventType + val GAMEPAD_DISCONNECTED: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/gl/WebGLContextEvent.kt b/kotlin-browser/src/jsMain/generated/web/gl/WebGLContextEvent.kt index 629bafc4559fe..6fac69c10d9ce 100644 --- a/kotlin-browser/src/jsMain/generated/web/gl/WebGLContextEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/gl/WebGLContextEvent.kt @@ -7,6 +7,7 @@ package web.gl import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -14,10 +15,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent) */ -open external class WebGLContextEvent( - override val type: EventType, +open external class WebGLContextEvent( + override val type: EventType>, init: WebGLContextEventInit = definedExternally, -) : Event, +) : Event, WebGLContextEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent/statusMessage) diff --git a/kotlin-browser/src/jsMain/generated/web/history/HashChangeEvent.kt b/kotlin-browser/src/jsMain/generated/web/history/HashChangeEvent.kt index 0acdac0cfc336..abfd3787e1de0 100644 --- a/kotlin-browser/src/jsMain/generated/web/history/HashChangeEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/history/HashChangeEvent.kt @@ -7,6 +7,7 @@ package web.history import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -14,10 +15,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent) */ -open external class HashChangeEvent( - override val type: EventType, +open external class HashChangeEvent( + override val type: EventType>, init: HashChangeEventInit = definedExternally, -) : Event, +) : Event, HashChangeEventInit { /** * Returns the URL of the session history entry that is now current. diff --git a/kotlin-browser/src/jsMain/generated/web/history/HashChangeEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/history/HashChangeEvent.types.kt index 2a6429f7ed6e4..1dafcdb86b94c 100644 --- a/kotlin-browser/src/jsMain/generated/web/history/HashChangeEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/history/HashChangeEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface HashChangeEventTypes { @JsValue("hashchange") - val HASH_CHANGE: EventType + val HASH_CHANGE: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/history/PageTransitionEvent.kt b/kotlin-browser/src/jsMain/generated/web/history/PageTransitionEvent.kt index 5d08fea74b0a9..56fea03ea7db2 100644 --- a/kotlin-browser/src/jsMain/generated/web/history/PageTransitionEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/history/PageTransitionEvent.kt @@ -7,6 +7,7 @@ package web.history import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -14,10 +15,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageTransitionEvent) */ -open external class PageTransitionEvent( - override val type: EventType, +open external class PageTransitionEvent( + override val type: EventType>, init: PageTransitionEventInit = definedExternally, -) : Event, +) : Event, PageTransitionEventInit { /** * For the pageshow event, returns false if the page is newly being loaded (and the load event will fire). Otherwise, returns true. diff --git a/kotlin-browser/src/jsMain/generated/web/history/PageTransitionEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/history/PageTransitionEvent.types.kt index f1643387eec8c..c177877d1bcac 100644 --- a/kotlin-browser/src/jsMain/generated/web/history/PageTransitionEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/history/PageTransitionEvent.types.kt @@ -11,10 +11,10 @@ import web.events.EventType sealed external interface PageTransitionEventTypes { @JsValue("pagehide") - val PAGE_HIDE: EventType + val PAGE_HIDE: EventType> get() = definedExternally @JsValue("pageshow") - val PAGE_SHOW: EventType + val PAGE_SHOW: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/history/PopStateEvent.kt b/kotlin-browser/src/jsMain/generated/web/history/PopStateEvent.kt index 6999c09e447fb..c22bd631d78a1 100644 --- a/kotlin-browser/src/jsMain/generated/web/history/PopStateEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/history/PopStateEvent.kt @@ -7,6 +7,7 @@ package web.history import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -14,10 +15,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent) */ -open external class PopStateEvent( - override val type: EventType, +open external class PopStateEvent( + override val type: EventType>, init: PopStateEventInit = definedExternally, -) : Event, +) : Event, PopStateEventInit { /** * Returns a copy of the information that was provided to pushState() or replaceState(). diff --git a/kotlin-browser/src/jsMain/generated/web/history/PopStateEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/history/PopStateEvent.types.kt index daf96b8cee85e..393b4b0bf31dc 100644 --- a/kotlin-browser/src/jsMain/generated/web/history/PopStateEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/history/PopStateEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface PopStateEventTypes { @JsValue("popstate") - val POP_STATE: EventType + val POP_STATE: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/html/Event.types.kt b/kotlin-browser/src/jsMain/generated/web/html/Event.types.kt index e817ffa7eccb6..b59f0d8ec3e76 100644 --- a/kotlin-browser/src/jsMain/generated/web/html/Event.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/html/Event.types.kt @@ -5,5 +5,5 @@ package web.html import web.events.Event import web.events.EventType -inline val Event.Companion.WAITING_FOR_KEY: EventType +inline val Event.Companion.WAITING_FOR_KEY: EventType> get() = EventType("waitingforkey") diff --git a/kotlin-browser/src/jsMain/generated/web/html/HTMLMediaElement.kt b/kotlin-browser/src/jsMain/generated/web/html/HTMLMediaElement.kt index 31021bf7fbff5..021e248e63299 100644 --- a/kotlin-browser/src/jsMain/generated/web/html/HTMLMediaElement.kt +++ b/kotlin-browser/src/jsMain/generated/web/html/HTMLMediaElement.kt @@ -130,12 +130,12 @@ sealed external class HTMLMediaElement : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/encrypted_event) */ - var onencrypted: EventHandler? + var onencrypted: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waitingforkey_event) */ - var onwaitingforkey: EventHandler? + var onwaitingforkey: EventHandler>? /** * Gets a flag that specifies whether playback is paused. diff --git a/kotlin-browser/src/jsMain/generated/web/html/HTMLVideoElement.kt b/kotlin-browser/src/jsMain/generated/web/html/HTMLVideoElement.kt index 47087e2cafa39..699232ec1a1fb 100644 --- a/kotlin-browser/src/jsMain/generated/web/html/HTMLVideoElement.kt +++ b/kotlin-browser/src/jsMain/generated/web/html/HTMLVideoElement.kt @@ -34,12 +34,12 @@ protected constructor() : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/enterpictureinpicture_event) */ - var onenterpictureinpicture: EventHandler? + var onenterpictureinpicture: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/leavepictureinpicture_event) */ - var onleavepictureinpicture: EventHandler? + var onleavepictureinpicture: EventHandler>? /** * Gets or sets the playsinline of the video element. for example, On iPhone, video elements will now be allowed to play inline, and will not automatically enter fullscreen mode when playback begins. diff --git a/kotlin-browser/src/jsMain/generated/web/html/MediaEncryptedEvent.kt b/kotlin-browser/src/jsMain/generated/web/html/MediaEncryptedEvent.kt index c1b7e38806482..8266fb4371a2d 100644 --- a/kotlin-browser/src/jsMain/generated/web/html/MediaEncryptedEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/html/MediaEncryptedEvent.kt @@ -8,15 +8,16 @@ package web.html import js.buffer.ArrayBuffer import web.events.Event +import web.events.EventTarget import web.events.EventType /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent) */ -open external class MediaEncryptedEvent( - override val type: EventType, +open external class MediaEncryptedEvent( + override val type: EventType>, init: MediaEncryptedEventInit = definedExternally, -) : Event, +) : Event, MediaEncryptedEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent/initData) diff --git a/kotlin-browser/src/jsMain/generated/web/html/MediaEncryptedEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/html/MediaEncryptedEvent.types.kt index fc01705d2e5c4..2cdc1df66b1e8 100644 --- a/kotlin-browser/src/jsMain/generated/web/html/MediaEncryptedEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/html/MediaEncryptedEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface MediaEncryptedEventTypes { @JsValue("encrypted") - val ENCRYPTED: EventType + val ENCRYPTED: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/idb/IDBDatabase.kt b/kotlin-browser/src/jsMain/generated/web/idb/IDBDatabase.kt index 52c65957bc814..5357d9ed16904 100644 --- a/kotlin-browser/src/jsMain/generated/web/idb/IDBDatabase.kt +++ b/kotlin-browser/src/jsMain/generated/web/idb/IDBDatabase.kt @@ -29,18 +29,18 @@ sealed external class IDBDatabase : * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames) */ val objectStoreNames: DOMStringList - var onabort: EventHandler? + var onabort: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */ - var onclose: EventHandler? - var onerror: EventHandler? + var onclose: EventHandler>? + var onerror: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/versionchange_event) */ - var onversionchange: EventHandler? + var onversionchange: EventHandler>? /** * Returns the version of the database. diff --git a/kotlin-browser/src/jsMain/generated/web/idb/IDBOpenDBRequest.kt b/kotlin-browser/src/jsMain/generated/web/idb/IDBOpenDBRequest.kt index 90848b074b202..8e7f2664218d9 100644 --- a/kotlin-browser/src/jsMain/generated/web/idb/IDBOpenDBRequest.kt +++ b/kotlin-browser/src/jsMain/generated/web/idb/IDBOpenDBRequest.kt @@ -14,10 +14,10 @@ sealed external class IDBOpenDBRequest : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/blocked_event) */ - var onblocked: EventHandler? + var onblocked: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/upgradeneeded_event) */ - var onupgradeneeded: EventHandler? + var onupgradeneeded: EventHandler>? } diff --git a/kotlin-browser/src/jsMain/generated/web/idb/IDBRequest.kt b/kotlin-browser/src/jsMain/generated/web/idb/IDBRequest.kt index 5c042897c2f4e..6d54e46578d0f 100644 --- a/kotlin-browser/src/jsMain/generated/web/idb/IDBRequest.kt +++ b/kotlin-browser/src/jsMain/generated/web/idb/IDBRequest.kt @@ -24,12 +24,12 @@ sealed external class IDBRequest : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error_event) */ - var onerror: EventHandler? + var onerror: EventHandler>>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/success_event) */ - var onsuccess: EventHandler? + var onsuccess: EventHandler>>? /** * Returns "pending" until a request is complete, then returns "done". diff --git a/kotlin-browser/src/jsMain/generated/web/idb/IDBTransaction.kt b/kotlin-browser/src/jsMain/generated/web/idb/IDBTransaction.kt index 6195585fa3b62..4b36cfa41a381 100644 --- a/kotlin-browser/src/jsMain/generated/web/idb/IDBTransaction.kt +++ b/kotlin-browser/src/jsMain/generated/web/idb/IDBTransaction.kt @@ -49,17 +49,17 @@ sealed external class IDBTransaction : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */ - var onabort: EventHandler? + var onabort: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/complete_event) */ - var oncomplete: EventHandler? + var oncomplete: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error_event) */ - var onerror: EventHandler? + var onerror: EventHandler>? /** * Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. diff --git a/kotlin-browser/src/jsMain/generated/web/idb/IDBVersionChangeEvent.kt b/kotlin-browser/src/jsMain/generated/web/idb/IDBVersionChangeEvent.kt index 470d44bae4593..796c48b50ec9d 100644 --- a/kotlin-browser/src/jsMain/generated/web/idb/IDBVersionChangeEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/idb/IDBVersionChangeEvent.kt @@ -8,6 +8,7 @@ package web.idb import js.core.JsLong import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -15,10 +16,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent) */ -open external class IDBVersionChangeEvent( - override val type: EventType, +open external class IDBVersionChangeEvent( + override val type: EventType>, init: IDBVersionChangeEventInit = definedExternally, -) : Event, +) : Event, IDBVersionChangeEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/newVersion) diff --git a/kotlin-browser/src/jsMain/generated/web/idb/IDBVersionChangeEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/idb/IDBVersionChangeEvent.types.kt index cef4355ae519e..f77e6637c8af2 100644 --- a/kotlin-browser/src/jsMain/generated/web/idb/IDBVersionChangeEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/idb/IDBVersionChangeEvent.types.kt @@ -11,14 +11,14 @@ import web.events.EventType sealed external interface IDBVersionChangeEventTypes { @JsValue("blocked") - val BLOCKED: EventType + val BLOCKED: EventType> get() = definedExternally @JsValue("upgradeneeded") - val UPGRADENEEDED: EventType + val UPGRADENEEDED: EventType> get() = definedExternally @JsValue("versionchange") - val VERSION_CHANGE: EventType + val VERSION_CHANGE: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/media/devices/Event.types.kt b/kotlin-browser/src/jsMain/generated/web/media/devices/Event.types.kt index 19c53e835d87e..44930f8ee347d 100644 --- a/kotlin-browser/src/jsMain/generated/web/media/devices/Event.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/media/devices/Event.types.kt @@ -5,5 +5,5 @@ package web.media.devices import web.events.Event import web.events.EventType -inline val Event.Companion.DEVICE_CHANGE: EventType +inline val Event.Companion.DEVICE_CHANGE: EventType> get() = EventType("devicechange") diff --git a/kotlin-browser/src/jsMain/generated/web/media/devices/MediaDevices.kt b/kotlin-browser/src/jsMain/generated/web/media/devices/MediaDevices.kt index bf8c905c10172..fb2b499791ab7 100644 --- a/kotlin-browser/src/jsMain/generated/web/media/devices/MediaDevices.kt +++ b/kotlin-browser/src/jsMain/generated/web/media/devices/MediaDevices.kt @@ -22,7 +22,7 @@ sealed external class MediaDevices : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/devicechange_event) */ - var ondevicechange: EventHandler? + var ondevicechange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/enumerateDevices) diff --git a/kotlin-browser/src/jsMain/generated/web/media/key/Event.types.kt b/kotlin-browser/src/jsMain/generated/web/media/key/Event.types.kt index ad683f0c01d15..f7e5fb265510c 100644 --- a/kotlin-browser/src/jsMain/generated/web/media/key/Event.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/media/key/Event.types.kt @@ -5,5 +5,5 @@ package web.media.key import web.events.Event import web.events.EventType -inline val Event.Companion.KEY_STATUSES_CHANGE: EventType +inline val Event.Companion.KEY_STATUSES_CHANGE: EventType> get() = EventType("keystatuseschange") diff --git a/kotlin-browser/src/jsMain/generated/web/media/key/MediaKeyMessageEvent.kt b/kotlin-browser/src/jsMain/generated/web/media/key/MediaKeyMessageEvent.kt index 3f7e23827c226..b8932e1d7bfb0 100644 --- a/kotlin-browser/src/jsMain/generated/web/media/key/MediaKeyMessageEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/media/key/MediaKeyMessageEvent.kt @@ -8,6 +8,7 @@ package web.media.key import js.buffer.ArrayBuffer import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -16,10 +17,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent) */ -open external class MediaKeyMessageEvent( - override val type: EventType, +open external class MediaKeyMessageEvent( + override val type: EventType>, init: MediaKeyMessageEventInit, -) : Event, +) : Event, MediaKeyMessageEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent/message) diff --git a/kotlin-browser/src/jsMain/generated/web/media/key/MediaKeyMessageEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/media/key/MediaKeyMessageEvent.types.kt index 947ab4206a5c5..ecf1e2a893103 100644 --- a/kotlin-browser/src/jsMain/generated/web/media/key/MediaKeyMessageEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/media/key/MediaKeyMessageEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface MediaKeyMessageEventTypes { @JsValue("message") - val MESSAGE: EventType + val MESSAGE: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/media/key/MediaKeySession.kt b/kotlin-browser/src/jsMain/generated/web/media/key/MediaKeySession.kt index cb9614b2c6b69..39c47b59f1980 100644 --- a/kotlin-browser/src/jsMain/generated/web/media/key/MediaKeySession.kt +++ b/kotlin-browser/src/jsMain/generated/web/media/key/MediaKeySession.kt @@ -36,12 +36,12 @@ sealed external class MediaKeySession : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/keystatuseschange_event) */ - var onkeystatuseschange: EventHandler? + var onkeystatuseschange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/message_event) */ - var onmessage: EventHandler? + var onmessage: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/sessionId) diff --git a/kotlin-browser/src/jsMain/generated/web/media/recorder/BlobEvent.kt b/kotlin-browser/src/jsMain/generated/web/media/recorder/BlobEvent.kt index 91c8629063bdc..d103bbe39f620 100644 --- a/kotlin-browser/src/jsMain/generated/web/media/recorder/BlobEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/media/recorder/BlobEvent.kt @@ -8,16 +8,17 @@ package web.media.recorder import web.blob.Blob import web.events.Event +import web.events.EventTarget import web.events.EventType import web.time.DOMHighResTimeStamp /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent) */ -open external class BlobEvent( - override val type: EventType, +open external class BlobEvent( + override val type: EventType>, init: BlobEventInit, -) : Event, +) : Event, BlobEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/data) diff --git a/kotlin-browser/src/jsMain/generated/web/media/recorder/BlobEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/media/recorder/BlobEvent.types.kt index 69624c0c89441..7610e67ad7ea9 100644 --- a/kotlin-browser/src/jsMain/generated/web/media/recorder/BlobEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/media/recorder/BlobEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface BlobEventTypes { @JsValue("dataavailable") - val DATA_AVAILABLE: EventType + val DATA_AVAILABLE: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/media/recorder/Event.types.kt b/kotlin-browser/src/jsMain/generated/web/media/recorder/Event.types.kt index 0253d69c8afdb..6a5116fb998eb 100644 --- a/kotlin-browser/src/jsMain/generated/web/media/recorder/Event.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/media/recorder/Event.types.kt @@ -5,14 +5,14 @@ package web.media.recorder import web.events.Event import web.events.EventType -inline val Event.Companion.PAUSE: EventType +inline val Event.Companion.PAUSE: EventType> get() = EventType("pause") -inline val Event.Companion.RESUME: EventType +inline val Event.Companion.RESUME: EventType> get() = EventType("resume") -inline val Event.Companion.START: EventType +inline val Event.Companion.START: EventType> get() = EventType("start") -inline val Event.Companion.STOP: EventType +inline val Event.Companion.STOP: EventType> get() = EventType("stop") diff --git a/kotlin-browser/src/jsMain/generated/web/media/recorder/MediaRecorder.kt b/kotlin-browser/src/jsMain/generated/web/media/recorder/MediaRecorder.kt index 45753d4b50c59..88989abd7478c 100644 --- a/kotlin-browser/src/jsMain/generated/web/media/recorder/MediaRecorder.kt +++ b/kotlin-browser/src/jsMain/generated/web/media/recorder/MediaRecorder.kt @@ -28,32 +28,32 @@ external class MediaRecorder( /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/dataavailable_event) */ - var ondataavailable: EventHandler? + var ondataavailable: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/error_event) */ - var onerror: EventHandler? + var onerror: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause_event) */ - var onpause: EventHandler? + var onpause: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume_event) */ - var onresume: EventHandler? + var onresume: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/start_event) */ - var onstart: EventHandler? + var onstart: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stop_event) */ - var onstop: EventHandler? + var onstop: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/state) diff --git a/kotlin-browser/src/jsMain/generated/web/media/source/Event.types.kt b/kotlin-browser/src/jsMain/generated/web/media/source/Event.types.kt index 12d9b3573911a..e844b366b7247 100644 --- a/kotlin-browser/src/jsMain/generated/web/media/source/Event.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/media/source/Event.types.kt @@ -5,26 +5,26 @@ package web.media.source import web.events.Event import web.events.EventType -inline val Event.Companion.ADD_SOURCE_BUFFER: EventType +inline val Event.Companion.ADD_SOURCE_BUFFER: EventType> get() = EventType("addsourcebuffer") -inline val Event.Companion.REMOVE_SOURCE_BUFFER: EventType +inline val Event.Companion.REMOVE_SOURCE_BUFFER: EventType> get() = EventType("removesourcebuffer") -inline val Event.Companion.SOURCE_CLOSE: EventType +inline val Event.Companion.SOURCE_CLOSE: EventType> get() = EventType("sourceclose") -inline val Event.Companion.SOURCE_ENDED: EventType +inline val Event.Companion.SOURCE_ENDED: EventType> get() = EventType("sourceended") -inline val Event.Companion.SOURCE_OPEN: EventType +inline val Event.Companion.SOURCE_OPEN: EventType> get() = EventType("sourceopen") -inline val Event.Companion.UPDATE: EventType +inline val Event.Companion.UPDATE: EventType> get() = EventType("update") -inline val Event.Companion.UPDATE_END: EventType +inline val Event.Companion.UPDATE_END: EventType> get() = EventType("updateend") -inline val Event.Companion.UPDATE_START: EventType +inline val Event.Companion.UPDATE_START: EventType> get() = EventType("updatestart") diff --git a/kotlin-browser/src/jsMain/generated/web/media/source/MediaSource.kt b/kotlin-browser/src/jsMain/generated/web/media/source/MediaSource.kt index 8fad99bc843b3..69e0bcaac79ac 100644 --- a/kotlin-browser/src/jsMain/generated/web/media/source/MediaSource.kt +++ b/kotlin-browser/src/jsMain/generated/web/media/source/MediaSource.kt @@ -26,17 +26,17 @@ external class MediaSource : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceclose_event) */ - var onsourceclose: EventHandler? + var onsourceclose: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceended_event) */ - var onsourceended: EventHandler? + var onsourceended: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceopen_event) */ - var onsourceopen: EventHandler? + var onsourceopen: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/readyState) diff --git a/kotlin-browser/src/jsMain/generated/web/media/source/SourceBuffer.kt b/kotlin-browser/src/jsMain/generated/web/media/source/SourceBuffer.kt index bd3d663f91358..eca4b9048250c 100644 --- a/kotlin-browser/src/jsMain/generated/web/media/source/SourceBuffer.kt +++ b/kotlin-browser/src/jsMain/generated/web/media/source/SourceBuffer.kt @@ -37,27 +37,27 @@ sealed external class SourceBuffer : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort_event) */ - var onabort: EventHandler? + var onabort: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/error_event) */ - var onerror: EventHandler? + var onerror: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/update_event) */ - var onupdate: EventHandler? + var onupdate: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updateend_event) */ - var onupdateend: EventHandler? + var onupdateend: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updatestart_event) */ - var onupdatestart: EventHandler? + var onupdatestart: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/timestampOffset) diff --git a/kotlin-browser/src/jsMain/generated/web/media/source/SourceBufferList.kt b/kotlin-browser/src/jsMain/generated/web/media/source/SourceBufferList.kt index d8c8e8b5eba11..f37afb1fff782 100644 --- a/kotlin-browser/src/jsMain/generated/web/media/source/SourceBufferList.kt +++ b/kotlin-browser/src/jsMain/generated/web/media/source/SourceBufferList.kt @@ -20,10 +20,10 @@ sealed external class SourceBufferList : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/addsourcebuffer_event) */ - var onaddsourcebuffer: EventHandler? + var onaddsourcebuffer: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/removesourcebuffer_event) */ - var onremovesourcebuffer: EventHandler? + var onremovesourcebuffer: EventHandler>? } diff --git a/kotlin-browser/src/jsMain/generated/web/media/streams/Event.types.kt b/kotlin-browser/src/jsMain/generated/web/media/streams/Event.types.kt index 9637856e4fbe6..5165e8b47df04 100644 --- a/kotlin-browser/src/jsMain/generated/web/media/streams/Event.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/media/streams/Event.types.kt @@ -5,11 +5,11 @@ package web.media.streams import web.events.Event import web.events.EventType -inline val Event.Companion.ENDED: EventType +inline val Event.Companion.ENDED: EventType> get() = EventType("ended") -inline val Event.Companion.MUTE: EventType +inline val Event.Companion.MUTE: EventType> get() = EventType("mute") -inline val Event.Companion.UNMUTE: EventType +inline val Event.Companion.UNMUTE: EventType> get() = EventType("unmute") diff --git a/kotlin-browser/src/jsMain/generated/web/media/streams/MediaStream.kt b/kotlin-browser/src/jsMain/generated/web/media/streams/MediaStream.kt index 94d6c40807320..c7ffb97de371c 100644 --- a/kotlin-browser/src/jsMain/generated/web/media/streams/MediaStream.kt +++ b/kotlin-browser/src/jsMain/generated/web/media/streams/MediaStream.kt @@ -28,12 +28,12 @@ external class MediaStream() : EventTarget { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/addtrack_event) */ - var onaddtrack: EventHandler? + var onaddtrack: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/removetrack_event) */ - var onremovetrack: EventHandler? + var onremovetrack: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/addTrack) diff --git a/kotlin-browser/src/jsMain/generated/web/media/streams/MediaStreamTrack.kt b/kotlin-browser/src/jsMain/generated/web/media/streams/MediaStreamTrack.kt index 1cbeac6a69703..034ae4037456f 100644 --- a/kotlin-browser/src/jsMain/generated/web/media/streams/MediaStreamTrack.kt +++ b/kotlin-browser/src/jsMain/generated/web/media/streams/MediaStreamTrack.kt @@ -48,17 +48,17 @@ sealed external class MediaStreamTrack : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/ended_event) */ - var onended: EventHandler? + var onended: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/mute_event) */ - var onmute: EventHandler? + var onmute: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/unmute_event) */ - var onunmute: EventHandler? + var onunmute: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/readyState) diff --git a/kotlin-browser/src/jsMain/generated/web/media/streams/MediaStreamTrackEvent.kt b/kotlin-browser/src/jsMain/generated/web/media/streams/MediaStreamTrackEvent.kt index 9671b9e6a7179..fa79f362052e7 100644 --- a/kotlin-browser/src/jsMain/generated/web/media/streams/MediaStreamTrackEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/media/streams/MediaStreamTrackEvent.kt @@ -7,6 +7,7 @@ package web.media.streams import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -14,10 +15,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackEvent) */ -open external class MediaStreamTrackEvent( - override val type: EventType, +open external class MediaStreamTrackEvent( + override val type: EventType>, init: MediaStreamTrackEventInit, -) : Event, +) : Event, MediaStreamTrackEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackEvent/track) diff --git a/kotlin-browser/src/jsMain/generated/web/media/streams/MediaStreamTrackEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/media/streams/MediaStreamTrackEvent.types.kt index d109dd9813b97..71b5fa981154d 100644 --- a/kotlin-browser/src/jsMain/generated/web/media/streams/MediaStreamTrackEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/media/streams/MediaStreamTrackEvent.types.kt @@ -11,10 +11,10 @@ import web.events.EventType sealed external interface MediaStreamTrackEventTypes { @JsValue("addtrack") - val ADD_TRACK: EventType + val ADD_TRACK: EventType> get() = definedExternally @JsValue("removetrack") - val REMOVE_TRACK: EventType + val REMOVE_TRACK: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/midi/MIDIAccess.kt b/kotlin-browser/src/jsMain/generated/web/midi/MIDIAccess.kt index ca56c52ead92c..750eb099afbac 100644 --- a/kotlin-browser/src/jsMain/generated/web/midi/MIDIAccess.kt +++ b/kotlin-browser/src/jsMain/generated/web/midi/MIDIAccess.kt @@ -20,7 +20,7 @@ sealed external class MIDIAccess : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/statechange_event) */ - var onstatechange: EventHandler? + var onstatechange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/outputs) diff --git a/kotlin-browser/src/jsMain/generated/web/midi/MIDIConnectionEvent.kt b/kotlin-browser/src/jsMain/generated/web/midi/MIDIConnectionEvent.kt index 776daf77d7770..888ada472520e 100644 --- a/kotlin-browser/src/jsMain/generated/web/midi/MIDIConnectionEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/midi/MIDIConnectionEvent.kt @@ -7,6 +7,7 @@ package web.midi import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -14,10 +15,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent) */ -open external class MIDIConnectionEvent( - override val type: EventType, +open external class MIDIConnectionEvent( + override val type: EventType>, init: MIDIConnectionEventInit = definedExternally, -) : Event, +) : Event, MIDIConnectionEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent/port) diff --git a/kotlin-browser/src/jsMain/generated/web/midi/MIDIConnectionEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/midi/MIDIConnectionEvent.types.kt index a97d07a89d78a..bbca3609617f5 100644 --- a/kotlin-browser/src/jsMain/generated/web/midi/MIDIConnectionEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/midi/MIDIConnectionEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface MIDIConnectionEventTypes { @JsValue("statechange") - val STATE_CHANGE: EventType + val STATE_CHANGE: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/midi/MIDIInput.kt b/kotlin-browser/src/jsMain/generated/web/midi/MIDIInput.kt index 3dee2710e15c2..fcc3aca116089 100644 --- a/kotlin-browser/src/jsMain/generated/web/midi/MIDIInput.kt +++ b/kotlin-browser/src/jsMain/generated/web/midi/MIDIInput.kt @@ -14,5 +14,5 @@ sealed external class MIDIInput : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInput/midimessage_event) */ - var onmidimessage: EventHandler? + var onmidimessage: EventHandler>? } diff --git a/kotlin-browser/src/jsMain/generated/web/midi/MIDIMessageEvent.kt b/kotlin-browser/src/jsMain/generated/web/midi/MIDIMessageEvent.kt index ffa4707ee1091..866db1b86a713 100644 --- a/kotlin-browser/src/jsMain/generated/web/midi/MIDIMessageEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/midi/MIDIMessageEvent.kt @@ -8,6 +8,7 @@ package web.midi import js.typedarrays.Uint8Array import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -15,10 +16,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIMessageEvent) */ -open external class MIDIMessageEvent( - override val type: EventType, +open external class MIDIMessageEvent( + override val type: EventType>, init: MIDIMessageEventInit = definedExternally, -) : Event, +) : Event, MIDIMessageEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIMessageEvent/data) diff --git a/kotlin-browser/src/jsMain/generated/web/midi/MIDIMessageEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/midi/MIDIMessageEvent.types.kt index e09adb600a550..87e786af73769 100644 --- a/kotlin-browser/src/jsMain/generated/web/midi/MIDIMessageEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/midi/MIDIMessageEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface MIDIMessageEventTypes { @JsValue("midimessage") - val MIDI_MESSAGE: EventType + val MIDI_MESSAGE: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/midi/MIDIPort.kt b/kotlin-browser/src/jsMain/generated/web/midi/MIDIPort.kt index eb3897c41869f..4b03e3ad93531 100644 --- a/kotlin-browser/src/jsMain/generated/web/midi/MIDIPort.kt +++ b/kotlin-browser/src/jsMain/generated/web/midi/MIDIPort.kt @@ -36,7 +36,7 @@ sealed external class MIDIPort : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/statechange_event) */ - var onstatechange: EventHandler? + var onstatechange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/state) diff --git a/kotlin-browser/src/jsMain/generated/web/notifications/Event.types.kt b/kotlin-browser/src/jsMain/generated/web/notifications/Event.types.kt index 6d4dab1377a1b..064d099f6ba64 100644 --- a/kotlin-browser/src/jsMain/generated/web/notifications/Event.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/notifications/Event.types.kt @@ -5,8 +5,8 @@ package web.notifications import web.events.Event import web.events.EventType -inline val Event.Companion.CLICK: EventType +inline val Event.Companion.CLICK: EventType> get() = EventType("click") -inline val Event.Companion.SHOW: EventType +inline val Event.Companion.SHOW: EventType> get() = EventType("show") diff --git a/kotlin-browser/src/jsMain/generated/web/notifications/Notification.kt b/kotlin-browser/src/jsMain/generated/web/notifications/Notification.kt index b1c6d64b2f6b2..f4793eb5b286c 100644 --- a/kotlin-browser/src/jsMain/generated/web/notifications/Notification.kt +++ b/kotlin-browser/src/jsMain/generated/web/notifications/Notification.kt @@ -49,22 +49,22 @@ external class Notification( /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/click_event) */ - var onclick: EventHandler? + var onclick: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close_event) */ - var onclose: EventHandler? + var onclose: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/error_event) */ - var onerror: EventHandler? + var onerror: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */ - var onshow: EventHandler? + var onshow: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) diff --git a/kotlin-browser/src/jsMain/generated/web/payment/PaymentMethodChangeEvent.kt b/kotlin-browser/src/jsMain/generated/web/payment/PaymentMethodChangeEvent.kt index e7d8610a09476..aa9fb9e67800b 100644 --- a/kotlin-browser/src/jsMain/generated/web/payment/PaymentMethodChangeEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/payment/PaymentMethodChangeEvent.kt @@ -6,6 +6,7 @@ package web.payment +import web.events.EventTarget import web.events.EventType /** @@ -13,10 +14,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent) */ -open external class PaymentMethodChangeEvent( - override val type: EventType, +open external class PaymentMethodChangeEvent( + override val type: EventType>, init: PaymentMethodChangeEventInit = definedExternally, -) : PaymentRequestUpdateEvent, +) : PaymentRequestUpdateEvent, PaymentMethodChangeEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodDetails) diff --git a/kotlin-browser/src/jsMain/generated/web/payment/PaymentMethodChangeEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/payment/PaymentMethodChangeEvent.types.kt index 665808d5a8a22..0f8f11519372d 100644 --- a/kotlin-browser/src/jsMain/generated/web/payment/PaymentMethodChangeEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/payment/PaymentMethodChangeEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface PaymentMethodChangeEventTypes { @JsValue("paymentmethodchange") - val PAYMENT_METHOD_CHANGE: EventType + val PAYMENT_METHOD_CHANGE: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/payment/PaymentRequest.kt b/kotlin-browser/src/jsMain/generated/web/payment/PaymentRequest.kt index f027dbe2c87e5..191abfd592fc5 100644 --- a/kotlin-browser/src/jsMain/generated/web/payment/PaymentRequest.kt +++ b/kotlin-browser/src/jsMain/generated/web/payment/PaymentRequest.kt @@ -27,7 +27,7 @@ external class PaymentRequest( /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/paymentmethodchange_event) */ - var onpaymentmethodchange: EventHandler? + var onpaymentmethodchange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/abort) diff --git a/kotlin-browser/src/jsMain/generated/web/payment/PaymentRequestUpdateEvent.kt b/kotlin-browser/src/jsMain/generated/web/payment/PaymentRequestUpdateEvent.kt index 2dc8b491e6803..c533fa022b2bd 100644 --- a/kotlin-browser/src/jsMain/generated/web/payment/PaymentRequestUpdateEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/payment/PaymentRequestUpdateEvent.kt @@ -8,6 +8,7 @@ package web.payment import js.promise.PromiseLike import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -16,10 +17,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequestUpdateEvent) */ -open external class PaymentRequestUpdateEvent( - override val type: EventType, +open external class PaymentRequestUpdateEvent( + override val type: EventType>, init: PaymentRequestUpdateEventInit = definedExternally, -) : Event, +) : Event, PaymentRequestUpdateEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequestUpdateEvent/updateWith) diff --git a/kotlin-browser/src/jsMain/generated/web/permissions/PermissionStatus.kt b/kotlin-browser/src/jsMain/generated/web/permissions/PermissionStatus.kt index 01179239c4b6d..93fb12787335e 100644 --- a/kotlin-browser/src/jsMain/generated/web/permissions/PermissionStatus.kt +++ b/kotlin-browser/src/jsMain/generated/web/permissions/PermissionStatus.kt @@ -19,7 +19,7 @@ sealed external class PermissionStatus : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/change_event) */ - var onchange: EventHandler? + var onchange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/state) diff --git a/kotlin-browser/src/jsMain/generated/web/pip/Event.types.kt b/kotlin-browser/src/jsMain/generated/web/pip/Event.types.kt index f4631da1cd508..b41e3e53292e0 100644 --- a/kotlin-browser/src/jsMain/generated/web/pip/Event.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/pip/Event.types.kt @@ -5,5 +5,5 @@ package web.pip import web.events.Event import web.events.EventType -inline val Event.Companion.RESIZE: EventType +inline val Event.Companion.RESIZE: EventType> get() = EventType("resize") diff --git a/kotlin-browser/src/jsMain/generated/web/pip/PictureInPictureEvent.kt b/kotlin-browser/src/jsMain/generated/web/pip/PictureInPictureEvent.kt index 7b58fd3403293..f45d53985cae4 100644 --- a/kotlin-browser/src/jsMain/generated/web/pip/PictureInPictureEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/pip/PictureInPictureEvent.kt @@ -7,15 +7,16 @@ package web.pip import web.events.Event +import web.events.EventTarget import web.events.EventType /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureEvent) */ -open external class PictureInPictureEvent( - override val type: EventType, +open external class PictureInPictureEvent( + override val type: EventType>, init: PictureInPictureEventInit, -) : Event, +) : Event, PictureInPictureEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureEvent/pictureInPictureWindow) diff --git a/kotlin-browser/src/jsMain/generated/web/pip/PictureInPictureEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/pip/PictureInPictureEvent.types.kt index f70d60214259e..25f5099f5465c 100644 --- a/kotlin-browser/src/jsMain/generated/web/pip/PictureInPictureEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/pip/PictureInPictureEvent.types.kt @@ -11,10 +11,10 @@ import web.events.EventType sealed external interface PictureInPictureEventTypes { @JsValue("enterpictureinpicture") - val ENTER_PICTURE_IN_PICTURE: EventType + val ENTER_PICTURE_IN_PICTURE: EventType> get() = definedExternally @JsValue("leavepictureinpicture") - val LEAVE_PICTURE_IN_PICTURE: EventType + val LEAVE_PICTURE_IN_PICTURE: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/pip/PictureInPictureWindow.kt b/kotlin-browser/src/jsMain/generated/web/pip/PictureInPictureWindow.kt index 792de28bd99d3..26542eb8ebb09 100644 --- a/kotlin-browser/src/jsMain/generated/web/pip/PictureInPictureWindow.kt +++ b/kotlin-browser/src/jsMain/generated/web/pip/PictureInPictureWindow.kt @@ -19,7 +19,7 @@ sealed external class PictureInPictureWindow : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/resize_event) */ - var onresize: EventHandler? + var onresize: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/width) diff --git a/kotlin-browser/src/jsMain/generated/web/push/PushEvent.kt b/kotlin-browser/src/jsMain/generated/web/push/PushEvent.kt index d991fc1feb1ec..dce4861be7fb1 100644 --- a/kotlin-browser/src/jsMain/generated/web/push/PushEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/push/PushEvent.kt @@ -6,6 +6,7 @@ package web.push +import web.events.EventTarget import web.events.EventType import web.serviceworker.ExtendableEvent @@ -15,10 +16,10 @@ import web.serviceworker.ExtendableEvent * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent) */ -open external class PushEvent( - override val type: EventType, +open external class PushEvent( + override val type: EventType>, init: PushEventInit = definedExternally, -) : ExtendableEvent, +) : ExtendableEvent, PushEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent/data) diff --git a/kotlin-browser/src/jsMain/generated/web/push/PushEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/push/PushEvent.types.kt index 8f44670640868..b1cc47190de56 100644 --- a/kotlin-browser/src/jsMain/generated/web/push/PushEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/push/PushEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface PushEventTypes { @JsValue("push") - val PUSH: EventType + val PUSH: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/remoteplayback/Event.types.kt b/kotlin-browser/src/jsMain/generated/web/remoteplayback/Event.types.kt index e3aea1f72b281..6b7003e4347f2 100644 --- a/kotlin-browser/src/jsMain/generated/web/remoteplayback/Event.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/remoteplayback/Event.types.kt @@ -5,11 +5,11 @@ package web.remoteplayback import web.events.Event import web.events.EventType -inline val Event.Companion.CONNECT: EventType +inline val Event.Companion.CONNECT: EventType> get() = EventType("connect") -inline val Event.Companion.CONNECTING: EventType +inline val Event.Companion.CONNECTING: EventType> get() = EventType("connecting") -inline val Event.Companion.DISCONNECT: EventType +inline val Event.Companion.DISCONNECT: EventType> get() = EventType("disconnect") diff --git a/kotlin-browser/src/jsMain/generated/web/remoteplayback/RemotePlayback.kt b/kotlin-browser/src/jsMain/generated/web/remoteplayback/RemotePlayback.kt index f60768b6f1110..a68e30193f503 100644 --- a/kotlin-browser/src/jsMain/generated/web/remoteplayback/RemotePlayback.kt +++ b/kotlin-browser/src/jsMain/generated/web/remoteplayback/RemotePlayback.kt @@ -16,17 +16,17 @@ sealed external class RemotePlayback : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/connect_event) */ - var onconnect: EventHandler? + var onconnect: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/connecting_event) */ - var onconnecting: EventHandler? + var onconnecting: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/disconnect_event) */ - var ondisconnect: EventHandler? + var ondisconnect: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/state) diff --git a/kotlin-browser/src/jsMain/generated/web/rtc/Event.types.kt b/kotlin-browser/src/jsMain/generated/web/rtc/Event.types.kt index f7dceef2ffcbf..396ccd08846d5 100644 --- a/kotlin-browser/src/jsMain/generated/web/rtc/Event.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/rtc/Event.types.kt @@ -5,29 +5,29 @@ package web.rtc import web.events.Event import web.events.EventType -inline val Event.Companion.BUFFERED_AMOUNT_LOW: EventType +inline val Event.Companion.BUFFERED_AMOUNT_LOW: EventType> get() = EventType("bufferedamountlow") -inline val Event.Companion.CONNECTION_STATE_CHANGE: EventType +inline val Event.Companion.CONNECTION_STATE_CHANGE: EventType> get() = EventType("connectionstatechange") -inline val Event.Companion.GATHERING_STATE_CHANGE: EventType +inline val Event.Companion.GATHERING_STATE_CHANGE: EventType> get() = EventType("gatheringstatechange") -inline val Event.Companion.ICE_CONNECTION_STATE_CHANGE: EventType +inline val Event.Companion.ICE_CONNECTION_STATE_CHANGE: EventType> get() = EventType("iceconnectionstatechange") -inline val Event.Companion.ICE_GATHERING_STATE_CHANGE: EventType +inline val Event.Companion.ICE_GATHERING_STATE_CHANGE: EventType> get() = EventType("icegatheringstatechange") -inline val Event.Companion.NEGOTIATION_NEEDED: EventType +inline val Event.Companion.NEGOTIATION_NEEDED: EventType> get() = EventType("negotiationneeded") -inline val Event.Companion.SELECTED_CANDIDATE_PAIR_CHANGE: EventType +inline val Event.Companion.SELECTED_CANDIDATE_PAIR_CHANGE: EventType> get() = EventType("selectedcandidatepairchange") -inline val Event.Companion.SIGNALING_STATE_CHANGE: EventType +inline val Event.Companion.SIGNALING_STATE_CHANGE: EventType> get() = EventType("signalingstatechange") -inline val Event.Companion.STATE_CHANGE: EventType +inline val Event.Companion.STATE_CHANGE: EventType> get() = EventType("statechange") diff --git a/kotlin-browser/src/jsMain/generated/web/rtc/RTCDTMFSender.kt b/kotlin-browser/src/jsMain/generated/web/rtc/RTCDTMFSender.kt index e53c5814efadd..42ccd7bc3f74f 100644 --- a/kotlin-browser/src/jsMain/generated/web/rtc/RTCDTMFSender.kt +++ b/kotlin-browser/src/jsMain/generated/web/rtc/RTCDTMFSender.kt @@ -18,7 +18,7 @@ sealed external class RTCDTMFSender : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/tonechange_event) */ - var ontonechange: EventHandler? + var ontonechange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/toneBuffer) diff --git a/kotlin-browser/src/jsMain/generated/web/rtc/RTCDTMFToneChangeEvent.kt b/kotlin-browser/src/jsMain/generated/web/rtc/RTCDTMFToneChangeEvent.kt index 38d2ceaf1d6b1..2136fc51a45b5 100644 --- a/kotlin-browser/src/jsMain/generated/web/rtc/RTCDTMFToneChangeEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/rtc/RTCDTMFToneChangeEvent.kt @@ -7,6 +7,7 @@ package web.rtc import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -14,10 +15,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFToneChangeEvent) */ -open external class RTCDTMFToneChangeEvent( - override val type: EventType, +open external class RTCDTMFToneChangeEvent( + override val type: EventType>, init: RTCDTMFToneChangeEventInit = definedExternally, -) : Event, +) : Event, RTCDTMFToneChangeEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFToneChangeEvent/tone) diff --git a/kotlin-browser/src/jsMain/generated/web/rtc/RTCDTMFToneChangeEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/rtc/RTCDTMFToneChangeEvent.types.kt index 5981b26bba427..4b87fdcefddf3 100644 --- a/kotlin-browser/src/jsMain/generated/web/rtc/RTCDTMFToneChangeEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/rtc/RTCDTMFToneChangeEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface RTCDTMFToneChangeEventTypes { @JsValue("tonechange") - val TONE_CHANGE: EventType + val TONE_CHANGE: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/rtc/RTCDataChannel.kt b/kotlin-browser/src/jsMain/generated/web/rtc/RTCDataChannel.kt index 6552cd4baa678..cb500c9110a43 100644 --- a/kotlin-browser/src/jsMain/generated/web/rtc/RTCDataChannel.kt +++ b/kotlin-browser/src/jsMain/generated/web/rtc/RTCDataChannel.kt @@ -59,32 +59,32 @@ sealed external class RTCDataChannel : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedamountlow_event) */ - var onbufferedamountlow: EventHandler? + var onbufferedamountlow: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close_event) */ - var onclose: EventHandler? + var onclose: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/closing_event) */ - var onclosing: EventHandler? + var onclosing: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/error_event) */ - var onerror: EventHandler? + var onerror: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/message_event) */ - var onmessage: EventHandler>? + var onmessage: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/open_event) */ - var onopen: EventHandler? + var onopen: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/ordered) diff --git a/kotlin-browser/src/jsMain/generated/web/rtc/RTCDataChannelEvent.kt b/kotlin-browser/src/jsMain/generated/web/rtc/RTCDataChannelEvent.kt index fda40b8b33f70..3e7ab02ff576f 100644 --- a/kotlin-browser/src/jsMain/generated/web/rtc/RTCDataChannelEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/rtc/RTCDataChannelEvent.kt @@ -7,15 +7,16 @@ package web.rtc import web.events.Event +import web.events.EventTarget import web.events.EventType /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannelEvent) */ -open external class RTCDataChannelEvent( - override val type: EventType, +open external class RTCDataChannelEvent( + override val type: EventType>, init: RTCDataChannelEventInit, -) : Event, +) : Event, RTCDataChannelEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannelEvent/channel) diff --git a/kotlin-browser/src/jsMain/generated/web/rtc/RTCDataChannelEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/rtc/RTCDataChannelEvent.types.kt index a5a2b844f0938..606e5986c4fe2 100644 --- a/kotlin-browser/src/jsMain/generated/web/rtc/RTCDataChannelEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/rtc/RTCDataChannelEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface RTCDataChannelEventTypes { @JsValue("datachannel") - val DATA_CHANNEL: EventType + val DATA_CHANNEL: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/rtc/RTCDtlsTransport.kt b/kotlin-browser/src/jsMain/generated/web/rtc/RTCDtlsTransport.kt index dcacbe7611586..10af9a12dfe67 100644 --- a/kotlin-browser/src/jsMain/generated/web/rtc/RTCDtlsTransport.kt +++ b/kotlin-browser/src/jsMain/generated/web/rtc/RTCDtlsTransport.kt @@ -17,12 +17,12 @@ sealed external class RTCDtlsTransport : * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/iceTransport) */ val iceTransport: RTCIceTransport - var onerror: EventHandler? + var onerror: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/statechange_event) */ - var onstatechange: EventHandler? + var onstatechange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) diff --git a/kotlin-browser/src/jsMain/generated/web/rtc/RTCErrorEvent.kt b/kotlin-browser/src/jsMain/generated/web/rtc/RTCErrorEvent.kt index 45e09a7da1b88..d1b6d7684fd01 100644 --- a/kotlin-browser/src/jsMain/generated/web/rtc/RTCErrorEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/rtc/RTCErrorEvent.kt @@ -7,15 +7,16 @@ package web.rtc import web.events.Event +import web.events.EventTarget import web.events.EventType /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCErrorEvent) */ -open external class RTCErrorEvent( - override val type: EventType, +open external class RTCErrorEvent( + override val type: EventType>, init: RTCErrorEventInit, -) : Event, +) : Event, RTCErrorEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCErrorEvent/error) diff --git a/kotlin-browser/src/jsMain/generated/web/rtc/RTCErrorEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/rtc/RTCErrorEvent.types.kt index 6767b2dd0afd8..bb83f37cab66f 100644 --- a/kotlin-browser/src/jsMain/generated/web/rtc/RTCErrorEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/rtc/RTCErrorEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface RTCErrorEventTypes { @JsValue("error") - val ERROR: EventType + val ERROR: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/rtc/RTCIceTransport.kt b/kotlin-browser/src/jsMain/generated/web/rtc/RTCIceTransport.kt index 18edad53bb62c..6ac18331d5063 100644 --- a/kotlin-browser/src/jsMain/generated/web/rtc/RTCIceTransport.kt +++ b/kotlin-browser/src/jsMain/generated/web/rtc/RTCIceTransport.kt @@ -21,17 +21,17 @@ sealed external class RTCIceTransport : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/gatheringstatechange_event) */ - var ongatheringstatechange: EventHandler? + var ongatheringstatechange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/selectedcandidatepairchange_event) */ - var onselectedcandidatepairchange: EventHandler? + var onselectedcandidatepairchange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/statechange_event) */ - var onstatechange: EventHandler? + var onstatechange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/state) diff --git a/kotlin-browser/src/jsMain/generated/web/rtc/RTCPeerConnection.kt b/kotlin-browser/src/jsMain/generated/web/rtc/RTCPeerConnection.kt index cb43ef9cb889d..3b70fc73d49df 100644 --- a/kotlin-browser/src/jsMain/generated/web/rtc/RTCPeerConnection.kt +++ b/kotlin-browser/src/jsMain/generated/web/rtc/RTCPeerConnection.kt @@ -58,47 +58,47 @@ external class RTCPeerConnection( /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/connectionstatechange_event) */ - var onconnectionstatechange: EventHandler? + var onconnectionstatechange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/datachannel_event) */ - var ondatachannel: EventHandler? + var ondatachannel: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icecandidate_event) */ - var onicecandidate: EventHandler? + var onicecandidate: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icecandidateerror_event) */ - var onicecandidateerror: EventHandler? + var onicecandidateerror: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceconnectionstatechange_event) */ - var oniceconnectionstatechange: EventHandler? + var oniceconnectionstatechange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icegatheringstatechange_event) */ - var onicegatheringstatechange: EventHandler? + var onicegatheringstatechange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/negotiationneeded_event) */ - var onnegotiationneeded: EventHandler? + var onnegotiationneeded: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/signalingstatechange_event) */ - var onsignalingstatechange: EventHandler? + var onsignalingstatechange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/track_event) */ - var ontrack: EventHandler? + var ontrack: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/pendingLocalDescription) diff --git a/kotlin-browser/src/jsMain/generated/web/rtc/RTCPeerConnectionIceErrorEvent.kt b/kotlin-browser/src/jsMain/generated/web/rtc/RTCPeerConnectionIceErrorEvent.kt index be05f3e046d57..9a9f60ad36623 100644 --- a/kotlin-browser/src/jsMain/generated/web/rtc/RTCPeerConnectionIceErrorEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/rtc/RTCPeerConnectionIceErrorEvent.kt @@ -7,15 +7,16 @@ package web.rtc import web.events.Event +import web.events.EventTarget import web.events.EventType /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent) */ -open external class RTCPeerConnectionIceErrorEvent( - override val type: EventType, +open external class RTCPeerConnectionIceErrorEvent( + override val type: EventType>, init: RTCPeerConnectionIceErrorEventInit, -) : Event, +) : Event, RTCPeerConnectionIceErrorEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/address) diff --git a/kotlin-browser/src/jsMain/generated/web/rtc/RTCPeerConnectionIceErrorEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/rtc/RTCPeerConnectionIceErrorEvent.types.kt index 80fc02ad0645f..15865e6850156 100644 --- a/kotlin-browser/src/jsMain/generated/web/rtc/RTCPeerConnectionIceErrorEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/rtc/RTCPeerConnectionIceErrorEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface RTCPeerConnectionIceErrorEventTypes { @JsValue("icecandidateerror") - val ICE_CANDIDATE_ERROR: EventType + val ICE_CANDIDATE_ERROR: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/rtc/RTCPeerConnectionIceEvent.kt b/kotlin-browser/src/jsMain/generated/web/rtc/RTCPeerConnectionIceEvent.kt index 06fe81b408048..c6de90bf4b2f6 100644 --- a/kotlin-browser/src/jsMain/generated/web/rtc/RTCPeerConnectionIceEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/rtc/RTCPeerConnectionIceEvent.kt @@ -7,6 +7,7 @@ package web.rtc import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -14,10 +15,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceEvent) */ -open external class RTCPeerConnectionIceEvent( - override val type: EventType, +open external class RTCPeerConnectionIceEvent( + override val type: EventType>, init: RTCPeerConnectionIceEventInit = definedExternally, -) : Event, +) : Event, RTCPeerConnectionIceEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceEvent/candidate) diff --git a/kotlin-browser/src/jsMain/generated/web/rtc/RTCPeerConnectionIceEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/rtc/RTCPeerConnectionIceEvent.types.kt index fa9edbca80b20..2334e447eb82e 100644 --- a/kotlin-browser/src/jsMain/generated/web/rtc/RTCPeerConnectionIceEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/rtc/RTCPeerConnectionIceEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface RTCPeerConnectionIceEventTypes { @JsValue("icecandidate") - val ICE_CANDIDATE: EventType + val ICE_CANDIDATE: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/rtc/RTCSctpTransport.kt b/kotlin-browser/src/jsMain/generated/web/rtc/RTCSctpTransport.kt index ff2cfc0562613..9e5fb49628f1d 100644 --- a/kotlin-browser/src/jsMain/generated/web/rtc/RTCSctpTransport.kt +++ b/kotlin-browser/src/jsMain/generated/web/rtc/RTCSctpTransport.kt @@ -20,7 +20,7 @@ sealed external class RTCSctpTransport : * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxMessageSize) */ val maxMessageSize: Double - var onstatechange: EventHandler? + var onstatechange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/state) diff --git a/kotlin-browser/src/jsMain/generated/web/rtc/RTCTrackEvent.kt b/kotlin-browser/src/jsMain/generated/web/rtc/RTCTrackEvent.kt index 021b6eede8003..e5fa61f18c0ec 100644 --- a/kotlin-browser/src/jsMain/generated/web/rtc/RTCTrackEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/rtc/RTCTrackEvent.kt @@ -8,6 +8,7 @@ package web.rtc import js.array.ReadonlyArray import web.events.Event +import web.events.EventTarget import web.events.EventType import web.media.streams.MediaStream import web.media.streams.MediaStreamTrack @@ -15,10 +16,10 @@ import web.media.streams.MediaStreamTrack /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent) */ -open external class RTCTrackEvent( - override val type: EventType, +open external class RTCTrackEvent( + override val type: EventType>, init: RTCTrackEventInit, -) : Event, +) : Event, RTCTrackEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/receiver) diff --git a/kotlin-browser/src/jsMain/generated/web/rtc/RTCTrackEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/rtc/RTCTrackEvent.types.kt index 0fa0813da27e4..0890884ef4de9 100644 --- a/kotlin-browser/src/jsMain/generated/web/rtc/RTCTrackEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/rtc/RTCTrackEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface RTCTrackEventTypes { @JsValue("track") - val TRACK: EventType + val TRACK: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/rtc/RTCTransformEvent.kt b/kotlin-browser/src/jsMain/generated/web/rtc/RTCTransformEvent.kt index 2a1ff47536244..b22aa247f423a 100644 --- a/kotlin-browser/src/jsMain/generated/web/rtc/RTCTransformEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/rtc/RTCTransformEvent.kt @@ -3,11 +3,12 @@ package web.rtc import web.events.Event +import web.events.EventTarget /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent) */ -sealed external class RTCTransformEvent : Event { +sealed external class RTCTransformEvent : Event { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent/transformer) */ diff --git a/kotlin-browser/src/jsMain/generated/web/rtc/RTCTransformEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/rtc/RTCTransformEvent.types.kt index 5b0deecf3fea8..fab9521e120ac 100644 --- a/kotlin-browser/src/jsMain/generated/web/rtc/RTCTransformEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/rtc/RTCTransformEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface RTCTransformEventTypes { @JsValue("rtctransform") - val RTC_TRANSFORM: EventType + val RTC_TRANSFORM: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/screen/ScreenOrientation.kt b/kotlin-browser/src/jsMain/generated/web/screen/ScreenOrientation.kt index 9428a0682c2c9..b0c46edbfebf6 100644 --- a/kotlin-browser/src/jsMain/generated/web/screen/ScreenOrientation.kt +++ b/kotlin-browser/src/jsMain/generated/web/screen/ScreenOrientation.kt @@ -15,7 +15,7 @@ sealed external class ScreenOrientation : * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/angle) */ val angle: Short - var onchange: EventHandler? + var onchange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type) diff --git a/kotlin-browser/src/jsMain/generated/web/serviceworker/Event.types.kt b/kotlin-browser/src/jsMain/generated/web/serviceworker/Event.types.kt index 02db4d3b003e0..84849aa9cdec8 100644 --- a/kotlin-browser/src/jsMain/generated/web/serviceworker/Event.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/serviceworker/Event.types.kt @@ -5,11 +5,11 @@ package web.serviceworker import web.events.Event import web.events.EventType -inline val Event.Companion.CONTROLLER_CHANGE: EventType +inline val Event.Companion.CONTROLLER_CHANGE: EventType> get() = EventType("controllerchange") -inline val Event.Companion.STATE_CHANGE: EventType +inline val Event.Companion.STATE_CHANGE: EventType> get() = EventType("statechange") -inline val Event.Companion.UPDATE_FOUND: EventType +inline val Event.Companion.UPDATE_FOUND: EventType> get() = EventType("updatefound") diff --git a/kotlin-browser/src/jsMain/generated/web/serviceworker/ExtendableEvent.kt b/kotlin-browser/src/jsMain/generated/web/serviceworker/ExtendableEvent.kt index 0d5b15d242541..09eac9d94376b 100644 --- a/kotlin-browser/src/jsMain/generated/web/serviceworker/ExtendableEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/serviceworker/ExtendableEvent.kt @@ -8,6 +8,7 @@ package web.serviceworker import js.promise.Promise import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -15,10 +16,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent) */ -open external class ExtendableEvent( - override val type: EventType, +open external class ExtendableEvent( + override val type: EventType>, init: ExtendableEventInit = definedExternally, -) : Event, +) : Event, ExtendableEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil) diff --git a/kotlin-browser/src/jsMain/generated/web/serviceworker/ExtendableEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/serviceworker/ExtendableEvent.types.kt index 2f4760396f0e5..cb59b26f36232 100644 --- a/kotlin-browser/src/jsMain/generated/web/serviceworker/ExtendableEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/serviceworker/ExtendableEvent.types.kt @@ -11,10 +11,10 @@ import web.events.EventType sealed external interface ExtendableEventTypes { @JsValue("activate") - val ACTIVATE: EventType + val ACTIVATE: EventType> get() = definedExternally @JsValue("install") - val INSTALL: EventType + val INSTALL: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/serviceworker/ExtendableMessageEvent.kt b/kotlin-browser/src/jsMain/generated/web/serviceworker/ExtendableMessageEvent.kt index 0d16fa70c6778..9771e44649bf3 100644 --- a/kotlin-browser/src/jsMain/generated/web/serviceworker/ExtendableMessageEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/serviceworker/ExtendableMessageEvent.kt @@ -7,6 +7,7 @@ package web.serviceworker import js.array.ReadonlyArray +import web.events.EventTarget import web.events.EventType import web.messaging.MessagePort @@ -15,10 +16,10 @@ import web.messaging.MessagePort * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent) */ -open external class ExtendableMessageEvent( - override val type: EventType, +open external class ExtendableMessageEvent( + override val type: EventType>, init: ExtendableMessageEventInit = definedExternally, -) : ExtendableEvent, +) : ExtendableEvent, ExtendableMessageEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/data) diff --git a/kotlin-browser/src/jsMain/generated/web/serviceworker/ExtendableMessageEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/serviceworker/ExtendableMessageEvent.types.kt index ebe366f8a6f1b..e0522cabd9b1c 100644 --- a/kotlin-browser/src/jsMain/generated/web/serviceworker/ExtendableMessageEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/serviceworker/ExtendableMessageEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface ExtendableMessageEventTypes { @JsValue("message") - val MESSAGE: EventType + val MESSAGE: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/serviceworker/FetchEvent.kt b/kotlin-browser/src/jsMain/generated/web/serviceworker/FetchEvent.kt index 5582481f788f2..14f8ca7fd73f4 100644 --- a/kotlin-browser/src/jsMain/generated/web/serviceworker/FetchEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/serviceworker/FetchEvent.kt @@ -9,6 +9,7 @@ package web.serviceworker import js.core.Void import js.promise.Promise import js.promise.PromiseLike +import web.events.EventTarget import web.events.EventType import web.http.Request import web.http.Response @@ -18,10 +19,10 @@ import web.http.Response * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent) */ -open external class FetchEvent( - override val type: EventType, +open external class FetchEvent( + override val type: EventType>, init: FetchEventInit, -) : ExtendableEvent, +) : ExtendableEvent, FetchEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/clientId) diff --git a/kotlin-browser/src/jsMain/generated/web/serviceworker/FetchEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/serviceworker/FetchEvent.types.kt index 5e584f7e4196c..fef6c56adaabb 100644 --- a/kotlin-browser/src/jsMain/generated/web/serviceworker/FetchEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/serviceworker/FetchEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface FetchEventTypes { @JsValue("fetch") - val FETCH: EventType + val FETCH: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/serviceworker/NotificationEvent.kt b/kotlin-browser/src/jsMain/generated/web/serviceworker/NotificationEvent.kt index d5452ae7bdddb..65a120cefe2a0 100644 --- a/kotlin-browser/src/jsMain/generated/web/serviceworker/NotificationEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/serviceworker/NotificationEvent.kt @@ -6,6 +6,7 @@ package web.serviceworker +import web.events.EventTarget import web.events.EventType import web.notifications.Notification @@ -14,10 +15,10 @@ import web.notifications.Notification * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent) */ -open external class NotificationEvent( - override val type: EventType, +open external class NotificationEvent( + override val type: EventType>, init: NotificationEventInit, -) : ExtendableEvent, +) : ExtendableEvent, NotificationEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent/action) diff --git a/kotlin-browser/src/jsMain/generated/web/serviceworker/NotificationEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/serviceworker/NotificationEvent.types.kt index 5216aa5d8b0d9..903ad51dc3c12 100644 --- a/kotlin-browser/src/jsMain/generated/web/serviceworker/NotificationEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/serviceworker/NotificationEvent.types.kt @@ -11,10 +11,10 @@ import web.events.EventType sealed external interface NotificationEventTypes { @JsValue("notificationclick") - val NOTIFICATION_CLICK: EventType + val NOTIFICATION_CLICK: EventType> get() = definedExternally @JsValue("notificationclose") - val NOTIFICATION_CLOSE: EventType + val NOTIFICATION_CLOSE: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/serviceworker/ServiceWorker.kt b/kotlin-browser/src/jsMain/generated/web/serviceworker/ServiceWorker.kt index 153d3528455d8..cbb5ab066bed5 100644 --- a/kotlin-browser/src/jsMain/generated/web/serviceworker/ServiceWorker.kt +++ b/kotlin-browser/src/jsMain/generated/web/serviceworker/ServiceWorker.kt @@ -24,7 +24,7 @@ sealed external class ServiceWorker : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/statechange_event) */ - var onstatechange: EventHandler? + var onstatechange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL) diff --git a/kotlin-browser/src/jsMain/generated/web/serviceworker/ServiceWorkerContainer.kt b/kotlin-browser/src/jsMain/generated/web/serviceworker/ServiceWorkerContainer.kt index d3d7f76b17f1f..07b60d966482c 100644 --- a/kotlin-browser/src/jsMain/generated/web/serviceworker/ServiceWorkerContainer.kt +++ b/kotlin-browser/src/jsMain/generated/web/serviceworker/ServiceWorkerContainer.kt @@ -26,17 +26,17 @@ sealed external class ServiceWorkerContainer : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controllerchange_event) */ - var oncontrollerchange: EventHandler? + var oncontrollerchange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */ - var onmessage: EventHandler>? + var onmessage: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */ - var onmessageerror: EventHandler>? + var onmessageerror: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) diff --git a/kotlin-browser/src/jsMain/generated/web/serviceworker/ServiceWorkerGlobalScope.kt b/kotlin-browser/src/jsMain/generated/web/serviceworker/ServiceWorkerGlobalScope.kt index 82b7e613714fa..5a9dfc1a8a1f2 100644 --- a/kotlin-browser/src/jsMain/generated/web/serviceworker/ServiceWorkerGlobalScope.kt +++ b/kotlin-browser/src/jsMain/generated/web/serviceworker/ServiceWorkerGlobalScope.kt @@ -25,47 +25,47 @@ sealed external class ServiceWorkerGlobalScope : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */ - var onactivate: EventHandler? + var onactivate: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */ - var onfetch: EventHandler? + var onfetch: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */ - var oninstall: EventHandler? + var oninstall: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */ - var onmessage: EventHandler? + var onmessage: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */ - var onmessageerror: EventHandler>? + var onmessageerror: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */ - var onnotificationclick: EventHandler? + var onnotificationclick: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */ - var onnotificationclose: EventHandler? + var onnotificationclose: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/push_event) */ - var onpush: EventHandler? + var onpush: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/pushsubscriptionchange_event) */ - var onpushsubscriptionchange: EventHandler? + var onpushsubscriptionchange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/registration) diff --git a/kotlin-browser/src/jsMain/generated/web/serviceworker/ServiceWorkerRegistration.kt b/kotlin-browser/src/jsMain/generated/web/serviceworker/ServiceWorkerRegistration.kt index 2ac5da789aa4a..07b7a1b7b99e8 100644 --- a/kotlin-browser/src/jsMain/generated/web/serviceworker/ServiceWorkerRegistration.kt +++ b/kotlin-browser/src/jsMain/generated/web/serviceworker/ServiceWorkerRegistration.kt @@ -38,7 +38,7 @@ sealed external class ServiceWorkerRegistration : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */ - var onupdatefound: EventHandler? + var onupdatefound: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) diff --git a/kotlin-browser/src/jsMain/generated/web/speech/Event.types.kt b/kotlin-browser/src/jsMain/generated/web/speech/Event.types.kt index d949af61eac9d..24c72cc7c657a 100644 --- a/kotlin-browser/src/jsMain/generated/web/speech/Event.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/speech/Event.types.kt @@ -5,5 +5,5 @@ package web.speech import web.events.Event import web.events.EventType -inline val Event.Companion.VOICES_CHANGED: EventType +inline val Event.Companion.VOICES_CHANGED: EventType> get() = EventType("voiceschanged") diff --git a/kotlin-browser/src/jsMain/generated/web/speech/SpeechSynthesis.kt b/kotlin-browser/src/jsMain/generated/web/speech/SpeechSynthesis.kt index 72333f191874a..621391416f7ab 100644 --- a/kotlin-browser/src/jsMain/generated/web/speech/SpeechSynthesis.kt +++ b/kotlin-browser/src/jsMain/generated/web/speech/SpeechSynthesis.kt @@ -17,7 +17,7 @@ sealed external class SpeechSynthesis : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/voiceschanged_event) */ - var onvoiceschanged: EventHandler? + var onvoiceschanged: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/paused) diff --git a/kotlin-browser/src/jsMain/generated/web/speech/SpeechSynthesisErrorEvent.kt b/kotlin-browser/src/jsMain/generated/web/speech/SpeechSynthesisErrorEvent.kt index 2ebfe89cd650e..dcb7d2af04ca5 100644 --- a/kotlin-browser/src/jsMain/generated/web/speech/SpeechSynthesisErrorEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/speech/SpeechSynthesisErrorEvent.kt @@ -6,15 +6,16 @@ package web.speech +import web.events.EventTarget import web.events.EventType /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisErrorEvent) */ -open external class SpeechSynthesisErrorEvent( - override val type: EventType, +open external class SpeechSynthesisErrorEvent( + override val type: EventType>, init: SpeechSynthesisErrorEventInit, -) : SpeechSynthesisEvent, +) : SpeechSynthesisEvent, SpeechSynthesisErrorEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisErrorEvent/error) diff --git a/kotlin-browser/src/jsMain/generated/web/speech/SpeechSynthesisErrorEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/speech/SpeechSynthesisErrorEvent.types.kt index 844a41e053fb2..813591ec7125d 100644 --- a/kotlin-browser/src/jsMain/generated/web/speech/SpeechSynthesisErrorEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/speech/SpeechSynthesisErrorEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface SpeechSynthesisErrorEventTypes { @JsValue("error") - val ERROR: EventType + val ERROR: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/speech/SpeechSynthesisEvent.kt b/kotlin-browser/src/jsMain/generated/web/speech/SpeechSynthesisEvent.kt index 5a3f6aaeaa35e..ce0620293ac70 100644 --- a/kotlin-browser/src/jsMain/generated/web/speech/SpeechSynthesisEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/speech/SpeechSynthesisEvent.kt @@ -7,6 +7,7 @@ package web.speech import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -14,10 +15,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent) */ -open external class SpeechSynthesisEvent( - override val type: EventType, +open external class SpeechSynthesisEvent( + override val type: EventType>, init: SpeechSynthesisEventInit, -) : Event, +) : Event, SpeechSynthesisEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/charIndex) diff --git a/kotlin-browser/src/jsMain/generated/web/speech/SpeechSynthesisEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/speech/SpeechSynthesisEvent.types.kt index d49dcaeed7b18..7c3473afac7fd 100644 --- a/kotlin-browser/src/jsMain/generated/web/speech/SpeechSynthesisEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/speech/SpeechSynthesisEvent.types.kt @@ -11,26 +11,26 @@ import web.events.EventType sealed external interface SpeechSynthesisEventTypes { @JsValue("boundary") - val BOUNDARY: EventType + val BOUNDARY: EventType> get() = definedExternally @JsValue("end") - val END: EventType + val END: EventType> get() = definedExternally @JsValue("mark") - val MARK: EventType + val MARK: EventType> get() = definedExternally @JsValue("pause") - val PAUSE: EventType + val PAUSE: EventType> get() = definedExternally @JsValue("resume") - val RESUME: EventType + val RESUME: EventType> get() = definedExternally @JsValue("start") - val START: EventType + val START: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/speech/SpeechSynthesisUtterance.kt b/kotlin-browser/src/jsMain/generated/web/speech/SpeechSynthesisUtterance.kt index f6bcab48c4cc2..819adb8e8acf4 100644 --- a/kotlin-browser/src/jsMain/generated/web/speech/SpeechSynthesisUtterance.kt +++ b/kotlin-browser/src/jsMain/generated/web/speech/SpeechSynthesisUtterance.kt @@ -21,37 +21,37 @@ external class SpeechSynthesisUtterance( /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/boundary_event) */ - var onboundary: EventHandler? + var onboundary: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/end_event) */ - var onend: EventHandler? + var onend: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/error_event) */ - var onerror: EventHandler? + var onerror: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/mark_event) */ - var onmark: EventHandler? + var onmark: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/pause_event) */ - var onpause: EventHandler? + var onpause: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/resume_event) */ - var onresume: EventHandler? + var onresume: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/start_event) */ - var onstart: EventHandler? + var onstart: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/pitch) diff --git a/kotlin-browser/src/jsMain/generated/web/sse/EventSource.kt b/kotlin-browser/src/jsMain/generated/web/sse/EventSource.kt index 21acba6d233a1..da155934a0acd 100644 --- a/kotlin-browser/src/jsMain/generated/web/sse/EventSource.kt +++ b/kotlin-browser/src/jsMain/generated/web/sse/EventSource.kt @@ -23,17 +23,17 @@ external class EventSource( /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */ - var onerror: EventHandler? + var onerror: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */ - var onmessage: EventHandler>? + var onmessage: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */ - var onopen: EventHandler? + var onopen: EventHandler>? /** * Returns the state of this EventSource object's connection. It can have the values described below. diff --git a/kotlin-browser/src/jsMain/generated/web/storage/StorageEvent.kt b/kotlin-browser/src/jsMain/generated/web/storage/StorageEvent.kt index b510469108a4a..7d3e7b338c814 100644 --- a/kotlin-browser/src/jsMain/generated/web/storage/StorageEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/storage/StorageEvent.kt @@ -7,6 +7,7 @@ package web.storage import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -14,10 +15,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent) */ -open external class StorageEvent( - override val type: EventType, +open external class StorageEvent( + override val type: EventType>, init: StorageEventInit = definedExternally, -) : Event, +) : Event, StorageEventInit { /** * Returns the key of the storage item being changed. diff --git a/kotlin-browser/src/jsMain/generated/web/storage/StorageEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/storage/StorageEvent.types.kt index 4c60969c391f2..a3a851f06402e 100644 --- a/kotlin-browser/src/jsMain/generated/web/storage/StorageEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/storage/StorageEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface StorageEventTypes { @JsValue("storage") - val STORAGE: EventType + val STORAGE: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/uievents/CompositionEvent.kt b/kotlin-browser/src/jsMain/generated/web/uievents/CompositionEvent.kt index 9a588aaa31ff7..55050462a29d7 100644 --- a/kotlin-browser/src/jsMain/generated/web/uievents/CompositionEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/uievents/CompositionEvent.kt @@ -6,6 +6,7 @@ package web.uievents +import web.events.EventTarget import web.events.EventType /** @@ -13,10 +14,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent) */ -open external class CompositionEvent( - override val type: EventType, +open external class CompositionEvent( + override val type: EventType>, init: CompositionEventInit = definedExternally, -) : UIEvent, +) : UIEvent, CompositionEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/data) diff --git a/kotlin-browser/src/jsMain/generated/web/uievents/CompositionEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/uievents/CompositionEvent.types.kt index 6991dd40d5f38..e7a97cbba654f 100644 --- a/kotlin-browser/src/jsMain/generated/web/uievents/CompositionEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/uievents/CompositionEvent.types.kt @@ -11,14 +11,14 @@ import web.events.EventType sealed external interface CompositionEventTypes { @JsValue("compositionend") - val COMPOSITION_END: EventType + val COMPOSITION_END: EventType> get() = definedExternally @JsValue("compositionstart") - val COMPOSITION_START: EventType + val COMPOSITION_START: EventType> get() = definedExternally @JsValue("compositionupdate") - val COMPOSITION_UPDATE: EventType + val COMPOSITION_UPDATE: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/uievents/DragEvent.kt b/kotlin-browser/src/jsMain/generated/web/uievents/DragEvent.kt index 828a46ee21fda..c3dcc7d8c233d 100644 --- a/kotlin-browser/src/jsMain/generated/web/uievents/DragEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/uievents/DragEvent.kt @@ -7,6 +7,7 @@ package web.uievents import web.data.DataTransfer +import web.events.EventTarget import web.events.EventType /** @@ -14,10 +15,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent) */ -open external class DragEvent( - override val type: EventType, +open external class DragEvent( + override val type: EventType>, init: DragEventInit = definedExternally, -) : MouseEvent { +) : MouseEvent { /** * Returns the DataTransfer object for the event. * diff --git a/kotlin-browser/src/jsMain/generated/web/uievents/DragEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/uievents/DragEvent.types.kt index 9ffbbac0ca0bd..ecdaef4ba5f56 100644 --- a/kotlin-browser/src/jsMain/generated/web/uievents/DragEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/uievents/DragEvent.types.kt @@ -11,30 +11,30 @@ import web.events.EventType sealed external interface DragEventTypes { @JsValue("drag") - val DRAG: EventType + val DRAG: EventType> get() = definedExternally @JsValue("dragend") - val DRAG_END: EventType + val DRAG_END: EventType> get() = definedExternally @JsValue("dragenter") - val DRAG_ENTER: EventType + val DRAG_ENTER: EventType> get() = definedExternally @JsValue("dragleave") - val DRAG_LEAVE: EventType + val DRAG_LEAVE: EventType> get() = definedExternally @JsValue("dragover") - val DRAG_OVER: EventType + val DRAG_OVER: EventType> get() = definedExternally @JsValue("dragstart") - val DRAG_START: EventType + val DRAG_START: EventType> get() = definedExternally @JsValue("drop") - val DROP: EventType + val DROP: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/uievents/FocusEvent.kt b/kotlin-browser/src/jsMain/generated/web/uievents/FocusEvent.kt index 304a26989f645..7ac45edd9341f 100644 --- a/kotlin-browser/src/jsMain/generated/web/uievents/FocusEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/uievents/FocusEvent.kt @@ -14,10 +14,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent) */ -open external class FocusEvent( - override val type: EventType, +open external class FocusEvent( + override val type: EventType>, init: FocusEventInit = definedExternally, -) : UIEvent, +) : UIEvent, FocusEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent/relatedTarget) diff --git a/kotlin-browser/src/jsMain/generated/web/uievents/FocusEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/uievents/FocusEvent.types.kt index 61400463b6aa7..d296bfa385952 100644 --- a/kotlin-browser/src/jsMain/generated/web/uievents/FocusEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/uievents/FocusEvent.types.kt @@ -11,18 +11,18 @@ import web.events.EventType sealed external interface FocusEventTypes { @JsValue("blur") - val BLUR: EventType + val BLUR: EventType> get() = definedExternally @JsValue("focus") - val FOCUS: EventType + val FOCUS: EventType> get() = definedExternally @JsValue("focusin") - val FOCUS_IN: EventType + val FOCUS_IN: EventType> get() = definedExternally @JsValue("focusout") - val FOCUS_OUT: EventType + val FOCUS_OUT: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/uievents/InputEvent.kt b/kotlin-browser/src/jsMain/generated/web/uievents/InputEvent.kt index 64a9da14c5ea6..3f50f834e3653 100644 --- a/kotlin-browser/src/jsMain/generated/web/uievents/InputEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/uievents/InputEvent.kt @@ -8,16 +8,17 @@ package web.uievents import js.array.ReadonlyArray import web.data.DataTransfer +import web.events.EventTarget import web.events.EventType import web.ranges.StaticRange /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent) */ -open external class InputEvent( - override val type: EventType, +open external class InputEvent( + override val type: EventType>, init: InputEventInit = definedExternally, -) : UIEvent { +) : UIEvent { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/data) */ diff --git a/kotlin-browser/src/jsMain/generated/web/uievents/InputEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/uievents/InputEvent.types.kt index 6820bf9054d25..e7f4078bc96a7 100644 --- a/kotlin-browser/src/jsMain/generated/web/uievents/InputEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/uievents/InputEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface InputEventTypes { @JsValue("beforeinput") - val BEFORE_INPUT: EventType + val BEFORE_INPUT: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/uievents/KeyboardEvent.kt b/kotlin-browser/src/jsMain/generated/web/uievents/KeyboardEvent.kt index 467863b2ffb50..72010c48ffc71 100644 --- a/kotlin-browser/src/jsMain/generated/web/uievents/KeyboardEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/uievents/KeyboardEvent.kt @@ -6,6 +6,7 @@ package web.uievents +import web.events.EventTarget import web.events.EventType import web.keyboard.KeyCode import web.keyboard.ModifierKeyCode @@ -15,10 +16,10 @@ import web.keyboard.ModifierKeyCode * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent) */ -open external class KeyboardEvent( - override val type: EventType, +open external class KeyboardEvent( + override val type: EventType>, init: KeyboardEventInit = definedExternally, -) : UIEvent { +) : UIEvent { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/altKey) */ diff --git a/kotlin-browser/src/jsMain/generated/web/uievents/KeyboardEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/uievents/KeyboardEvent.types.kt index ded39e8ba7fe3..ba9c181c6c94b 100644 --- a/kotlin-browser/src/jsMain/generated/web/uievents/KeyboardEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/uievents/KeyboardEvent.types.kt @@ -11,14 +11,14 @@ import web.events.EventType sealed external interface KeyboardEventTypes { @JsValue("keydown") - val KEY_DOWN: EventType + val KEY_DOWN: EventType> get() = definedExternally @JsValue("keypress") - val KEY_PRESS: EventType + val KEY_PRESS: EventType> get() = definedExternally @JsValue("keyup") - val KEY_UP: EventType + val KEY_UP: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/uievents/MouseEvent.kt b/kotlin-browser/src/jsMain/generated/web/uievents/MouseEvent.kt index 79497c8284c73..a04b2d8d63af1 100644 --- a/kotlin-browser/src/jsMain/generated/web/uievents/MouseEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/uievents/MouseEvent.kt @@ -15,10 +15,10 @@ import web.keyboard.ModifierKeyCode * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent) */ -open external class MouseEvent( - override val type: EventType, +open external class MouseEvent( + override val type: EventType>, init: MouseEventInit = definedExternally, -) : UIEvent { +) : UIEvent { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/altKey) */ diff --git a/kotlin-browser/src/jsMain/generated/web/uievents/MouseEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/uievents/MouseEvent.types.kt index eea2674c29ab3..0602ec0ba1a88 100644 --- a/kotlin-browser/src/jsMain/generated/web/uievents/MouseEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/uievents/MouseEvent.types.kt @@ -11,46 +11,46 @@ import web.events.EventType sealed external interface MouseEventTypes { @JsValue("auxclick") - val AUX_CLICK: EventType + val AUX_CLICK: EventType> get() = definedExternally @JsValue("click") - val CLICK: EventType + val CLICK: EventType> get() = definedExternally @JsValue("contextmenu") - val CONTEXT_MENU: EventType + val CONTEXT_MENU: EventType> get() = definedExternally @JsValue("dblclick") - val DBL_CLICK: EventType + val DBL_CLICK: EventType> get() = definedExternally @JsValue("mousedown") - val MOUSE_DOWN: EventType + val MOUSE_DOWN: EventType> get() = definedExternally @JsValue("mouseenter") - val MOUSE_ENTER: EventType + val MOUSE_ENTER: EventType> get() = definedExternally @JsValue("mouseleave") - val MOUSE_LEAVE: EventType + val MOUSE_LEAVE: EventType> get() = definedExternally @JsValue("mousemove") - val MOUSE_MOVE: EventType + val MOUSE_MOVE: EventType> get() = definedExternally @JsValue("mouseout") - val MOUSE_OUT: EventType + val MOUSE_OUT: EventType> get() = definedExternally @JsValue("mouseover") - val MOUSE_OVER: EventType + val MOUSE_OVER: EventType> get() = definedExternally @JsValue("mouseup") - val MOUSE_UP: EventType + val MOUSE_UP: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/uievents/PointerEvent.kt b/kotlin-browser/src/jsMain/generated/web/uievents/PointerEvent.kt index c3bdae6f7f441..98fb089efda9b 100644 --- a/kotlin-browser/src/jsMain/generated/web/uievents/PointerEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/uievents/PointerEvent.kt @@ -7,6 +7,7 @@ package web.uievents import js.array.ReadonlyArray +import web.events.EventTarget import web.events.EventType /** @@ -14,10 +15,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent) */ -open external class PointerEvent( - override val type: EventType, +open external class PointerEvent( + override val type: EventType>, init: PointerEventInit = definedExternally, -) : MouseEvent { +) : MouseEvent { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/height) */ @@ -73,12 +74,12 @@ open external class PointerEvent( * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getCoalescedEvents) */ - fun getCoalescedEvents(): ReadonlyArray + fun getCoalescedEvents(): ReadonlyArray> /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getPredictedEvents) */ - fun getPredictedEvents(): ReadonlyArray + fun getPredictedEvents(): ReadonlyArray> companion object : PointerEventTypes } diff --git a/kotlin-browser/src/jsMain/generated/web/uievents/PointerEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/uievents/PointerEvent.types.kt index 352507938dfbf..b7ac843defab2 100644 --- a/kotlin-browser/src/jsMain/generated/web/uievents/PointerEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/uievents/PointerEvent.types.kt @@ -11,42 +11,42 @@ import web.events.EventType sealed external interface PointerEventTypes { @JsValue("gotpointercapture") - val GOT_POINTER_CAPTURE: EventType + val GOT_POINTER_CAPTURE: EventType> get() = definedExternally @JsValue("lostpointercapture") - val LOST_POINTER_CAPTURE: EventType + val LOST_POINTER_CAPTURE: EventType> get() = definedExternally @JsValue("pointercancel") - val POINTER_CANCEL: EventType + val POINTER_CANCEL: EventType> get() = definedExternally @JsValue("pointerdown") - val POINTER_DOWN: EventType + val POINTER_DOWN: EventType> get() = definedExternally @JsValue("pointerenter") - val POINTER_ENTER: EventType + val POINTER_ENTER: EventType> get() = definedExternally @JsValue("pointerleave") - val POINTER_LEAVE: EventType + val POINTER_LEAVE: EventType> get() = definedExternally @JsValue("pointermove") - val POINTER_MOVE: EventType + val POINTER_MOVE: EventType> get() = definedExternally @JsValue("pointerout") - val POINTER_OUT: EventType + val POINTER_OUT: EventType> get() = definedExternally @JsValue("pointerover") - val POINTER_OVER: EventType + val POINTER_OVER: EventType> get() = definedExternally @JsValue("pointerup") - val POINTER_UP: EventType + val POINTER_UP: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/uievents/PointerEventInit.kt b/kotlin-browser/src/jsMain/generated/web/uievents/PointerEventInit.kt index 1d4c0103385e7..0930700b4736b 100644 --- a/kotlin-browser/src/jsMain/generated/web/uievents/PointerEventInit.kt +++ b/kotlin-browser/src/jsMain/generated/web/uievents/PointerEventInit.kt @@ -8,12 +8,12 @@ import js.objects.JsPlainObject @JsPlainObject external interface PointerEventInit : MouseEventInit { - val coalescedEvents: ReadonlyArray? + val coalescedEvents: ReadonlyArray>? val height: Double? val isPrimary: Boolean? val pointerId: Int? val pointerType: String? - val predictedEvents: ReadonlyArray? + val predictedEvents: ReadonlyArray>? val pressure: Float? val tangentialPressure: Float? val tiltX: Int? diff --git a/kotlin-browser/src/jsMain/generated/web/uievents/ToggleEvent.kt b/kotlin-browser/src/jsMain/generated/web/uievents/ToggleEvent.kt index a9a7e23b649f9..b61ec1cb553e3 100644 --- a/kotlin-browser/src/jsMain/generated/web/uievents/ToggleEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/uievents/ToggleEvent.kt @@ -7,15 +7,16 @@ package web.uievents import web.events.Event +import web.events.EventTarget import web.events.EventType /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */ -open external class ToggleEvent( - override val type: EventType, +open external class ToggleEvent( + override val type: EventType>, init: ToggleEventInit = definedExternally, -) : Event, +) : Event, ToggleEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) diff --git a/kotlin-browser/src/jsMain/generated/web/uievents/TouchEvent.kt b/kotlin-browser/src/jsMain/generated/web/uievents/TouchEvent.kt index 599fa783eb8d8..f70538a3eb381 100644 --- a/kotlin-browser/src/jsMain/generated/web/uievents/TouchEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/uievents/TouchEvent.kt @@ -8,6 +8,7 @@ package web.uievents +import web.events.EventTarget import web.events.EventType /** @@ -15,10 +16,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent) */ -open external class TouchEvent( - override val type: EventType, +open external class TouchEvent( + override val type: EventType>, init: TouchEventInit = definedExternally, -) : UIEvent { +) : UIEvent { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/altKey) */ diff --git a/kotlin-browser/src/jsMain/generated/web/uievents/TouchEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/uievents/TouchEvent.types.kt index 69b3525dca1b3..f940718484f81 100644 --- a/kotlin-browser/src/jsMain/generated/web/uievents/TouchEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/uievents/TouchEvent.types.kt @@ -11,18 +11,18 @@ import web.events.EventType sealed external interface TouchEventTypes { @JsValue("touchcancel") - val TOUCH_CANCEL: EventType + val TOUCH_CANCEL: EventType> get() = definedExternally @JsValue("touchend") - val TOUCH_END: EventType + val TOUCH_END: EventType> get() = definedExternally @JsValue("touchmove") - val TOUCH_MOVE: EventType + val TOUCH_MOVE: EventType> get() = definedExternally @JsValue("touchstart") - val TOUCH_START: EventType + val TOUCH_START: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/uievents/UIEvent.kt b/kotlin-browser/src/jsMain/generated/web/uievents/UIEvent.kt index 57c12ee9d2fc3..a48b19c0b01a8 100644 --- a/kotlin-browser/src/jsMain/generated/web/uievents/UIEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/uievents/UIEvent.kt @@ -7,6 +7,7 @@ package web.uievents import web.events.Event +import web.events.EventTarget import web.events.EventType import web.window.Window @@ -15,10 +16,10 @@ import web.window.Window * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent) */ -open external class UIEvent( - override val type: EventType, +open external class UIEvent( + override val type: EventType>, init: UIEventInit = definedExternally, -) : Event, +) : Event, UIEventInit { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/detail) diff --git a/kotlin-browser/src/jsMain/generated/web/uievents/UIEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/uievents/UIEvent.types.kt index f91d2684d9525..45b8b8aa73fb8 100644 --- a/kotlin-browser/src/jsMain/generated/web/uievents/UIEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/uievents/UIEvent.types.kt @@ -11,10 +11,10 @@ import web.events.EventType sealed external interface UIEventTypes { @JsValue("abort") - val ABORT: EventType + val ABORT: EventType> get() = definedExternally @JsValue("resize") - val RESIZE: EventType + val RESIZE: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/uievents/WheelEvent.kt b/kotlin-browser/src/jsMain/generated/web/uievents/WheelEvent.kt index ffcb6689e9efb..669d0ba3d5204 100644 --- a/kotlin-browser/src/jsMain/generated/web/uievents/WheelEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/uievents/WheelEvent.kt @@ -6,6 +6,7 @@ package web.uievents +import web.events.EventTarget import web.events.EventType /** @@ -13,10 +14,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent) */ -open external class WheelEvent( - override val type: EventType, +open external class WheelEvent( + override val type: EventType>, init: WheelEventInit = definedExternally, -) : MouseEvent { +) : MouseEvent { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaMode) */ diff --git a/kotlin-browser/src/jsMain/generated/web/uievents/WheelEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/uievents/WheelEvent.types.kt index 8563d62024baa..91cf77078b3ab 100644 --- a/kotlin-browser/src/jsMain/generated/web/uievents/WheelEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/uievents/WheelEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface WheelEventTypes { @JsValue("wheel") - val WHEEL: EventType + val WHEEL: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/viewport/VisualViewport.kt b/kotlin-browser/src/jsMain/generated/web/viewport/VisualViewport.kt index 0aaa85ead45aa..927cff5229e0b 100644 --- a/kotlin-browser/src/jsMain/generated/web/viewport/VisualViewport.kt +++ b/kotlin-browser/src/jsMain/generated/web/viewport/VisualViewport.kt @@ -29,12 +29,12 @@ sealed external class VisualViewport : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/resize_event) */ - var onresize: EventHandler? + var onresize: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scroll_event) */ - var onscroll: EventHandler? + var onscroll: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/pageLeft) diff --git a/kotlin-browser/src/jsMain/generated/web/vtt/Event.types.kt b/kotlin-browser/src/jsMain/generated/web/vtt/Event.types.kt index e8e0db654c4ce..0dad38c8ae159 100644 --- a/kotlin-browser/src/jsMain/generated/web/vtt/Event.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/vtt/Event.types.kt @@ -5,11 +5,11 @@ package web.vtt import web.events.Event import web.events.EventType -inline val Event.Companion.CUE_CHANGE: EventType +inline val Event.Companion.CUE_CHANGE: EventType> get() = EventType("cuechange") -inline val Event.Companion.ENTER: EventType +inline val Event.Companion.ENTER: EventType> get() = EventType("enter") -inline val Event.Companion.EXIT: EventType +inline val Event.Companion.EXIT: EventType> get() = EventType("exit") diff --git a/kotlin-browser/src/jsMain/generated/web/vtt/TextTrack.kt b/kotlin-browser/src/jsMain/generated/web/vtt/TextTrack.kt index 2c9248ecebd80..8c884e436483a 100644 --- a/kotlin-browser/src/jsMain/generated/web/vtt/TextTrack.kt +++ b/kotlin-browser/src/jsMain/generated/web/vtt/TextTrack.kt @@ -78,7 +78,7 @@ sealed external class TextTrack : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/cuechange_event) */ - var oncuechange: EventHandler? + var oncuechange: EventHandler>? /** * Adds the given cue to textTrack's text track list of cues. diff --git a/kotlin-browser/src/jsMain/generated/web/vtt/TextTrackCue.kt b/kotlin-browser/src/jsMain/generated/web/vtt/TextTrackCue.kt index a1501c2c50482..7ac40d7476192 100644 --- a/kotlin-browser/src/jsMain/generated/web/vtt/TextTrackCue.kt +++ b/kotlin-browser/src/jsMain/generated/web/vtt/TextTrackCue.kt @@ -34,12 +34,12 @@ sealed external class TextTrackCue : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/enter_event) */ - var onenter: EventHandler? + var onenter: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/exit_event) */ - var onexit: EventHandler? + var onexit: EventHandler>? /** * Returns true if the text track cue pause-on-exit flag is set, false otherwise. diff --git a/kotlin-browser/src/jsMain/generated/web/vtt/TextTrackList.kt b/kotlin-browser/src/jsMain/generated/web/vtt/TextTrackList.kt index 8abe923370adc..efab7abe520e3 100644 --- a/kotlin-browser/src/jsMain/generated/web/vtt/TextTrackList.kt +++ b/kotlin-browser/src/jsMain/generated/web/vtt/TextTrackList.kt @@ -18,17 +18,17 @@ sealed external class TextTrackList : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/addtrack_event) */ - var onaddtrack: EventHandler? + var onaddtrack: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/change_event) */ - var onchange: EventHandler? + var onchange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/removetrack_event) */ - var onremovetrack: EventHandler? + var onremovetrack: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/getTrackById) diff --git a/kotlin-browser/src/jsMain/generated/web/vtt/TrackEvent.kt b/kotlin-browser/src/jsMain/generated/web/vtt/TrackEvent.kt index 59cdb4790e3dd..8fba293c250ca 100644 --- a/kotlin-browser/src/jsMain/generated/web/vtt/TrackEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/vtt/TrackEvent.kt @@ -7,6 +7,7 @@ package web.vtt import web.events.Event +import web.events.EventTarget import web.events.EventType /** @@ -14,10 +15,10 @@ import web.events.EventType * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TrackEvent) */ -open external class TrackEvent( - override val type: EventType, +open external class TrackEvent( + override val type: EventType>, init: TrackEventInit = definedExternally, -) : Event, +) : Event, TrackEventInit { /** * Returns the track object (TextTrack, AudioTrack, or VideoTrack) to which the event relates. diff --git a/kotlin-browser/src/jsMain/generated/web/vtt/TrackEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/vtt/TrackEvent.types.kt index c498afc1b18f6..cb3487fa59750 100644 --- a/kotlin-browser/src/jsMain/generated/web/vtt/TrackEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/vtt/TrackEvent.types.kt @@ -11,10 +11,10 @@ import web.events.EventType sealed external interface TrackEventTypes { @JsValue("addtrack") - val ADD_TRACK: EventType + val ADD_TRACK: EventType> get() = definedExternally @JsValue("removetrack") - val REMOVE_TRACK: EventType + val REMOVE_TRACK: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/wakelock/Event.types.kt b/kotlin-browser/src/jsMain/generated/web/wakelock/Event.types.kt index 3778afb3ebfb4..fd676b283d642 100644 --- a/kotlin-browser/src/jsMain/generated/web/wakelock/Event.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/wakelock/Event.types.kt @@ -5,5 +5,5 @@ package web.wakelock import web.events.Event import web.events.EventType -inline val Event.Companion.RELEASE: EventType +inline val Event.Companion.RELEASE: EventType> get() = EventType("release") diff --git a/kotlin-browser/src/jsMain/generated/web/wakelock/WakeLockSentinel.kt b/kotlin-browser/src/jsMain/generated/web/wakelock/WakeLockSentinel.kt index bef9cbbb4e3e1..dc3940b0f9a7b 100644 --- a/kotlin-browser/src/jsMain/generated/web/wakelock/WakeLockSentinel.kt +++ b/kotlin-browser/src/jsMain/generated/web/wakelock/WakeLockSentinel.kt @@ -18,7 +18,7 @@ sealed external class WakeLockSentinel : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/release_event) */ - var onrelease: EventHandler? + var onrelease: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/released) diff --git a/kotlin-browser/src/jsMain/generated/web/window/BeforeUnloadEvent.kt b/kotlin-browser/src/jsMain/generated/web/window/BeforeUnloadEvent.kt index 91b7ea5b2bb14..3bb4b708d8d8b 100644 --- a/kotlin-browser/src/jsMain/generated/web/window/BeforeUnloadEvent.kt +++ b/kotlin-browser/src/jsMain/generated/web/window/BeforeUnloadEvent.kt @@ -3,13 +3,14 @@ package web.window import web.events.Event +import web.events.EventTarget /** * The beforeunload event is fired when the window, the document and its resources are about to be unloaded. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent) */ -sealed external class BeforeUnloadEvent : Event { +sealed external class BeforeUnloadEvent : Event { companion object : BeforeUnloadEventTypes diff --git a/kotlin-browser/src/jsMain/generated/web/window/BeforeUnloadEvent.types.kt b/kotlin-browser/src/jsMain/generated/web/window/BeforeUnloadEvent.types.kt index d3ec990a34aae..3d6815ac3b276 100644 --- a/kotlin-browser/src/jsMain/generated/web/window/BeforeUnloadEvent.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/window/BeforeUnloadEvent.types.kt @@ -11,6 +11,6 @@ import web.events.EventType sealed external interface BeforeUnloadEventTypes { @JsValue("beforeunload") - val BEFORE_UNLOAD: EventType + val BEFORE_UNLOAD: EventType> get() = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/window/Event.types.kt b/kotlin-browser/src/jsMain/generated/web/window/Event.types.kt index c074ae928c47e..a18c52c0e3485 100644 --- a/kotlin-browser/src/jsMain/generated/web/window/Event.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/window/Event.types.kt @@ -5,29 +5,29 @@ package web.window import web.events.Event import web.events.EventType -inline val Event.Companion.DOM_CONTENT_LOADED: EventType +inline val Event.Companion.DOM_CONTENT_LOADED: EventType> get() = EventType("DOMContentLoaded") -inline val Event.Companion.AFTER_PRINT: EventType +inline val Event.Companion.AFTER_PRINT: EventType> get() = EventType("afterprint") -inline val Event.Companion.BEFORE_PRINT: EventType +inline val Event.Companion.BEFORE_PRINT: EventType> get() = EventType("beforeprint") -inline val Event.Companion.LANGUAGE_CHANGE: EventType +inline val Event.Companion.LANGUAGE_CHANGE: EventType> get() = EventType("languagechange") -inline val Event.Companion.OFFLINE: EventType +inline val Event.Companion.OFFLINE: EventType> get() = EventType("offline") -inline val Event.Companion.ONLINE: EventType +inline val Event.Companion.ONLINE: EventType> get() = EventType("online") -inline val Event.Companion.RESIZE: EventType +inline val Event.Companion.RESIZE: EventType> get() = EventType("resize") -inline val Event.Companion.SCROLL: EventType +inline val Event.Companion.SCROLL: EventType> get() = EventType("scroll") -inline val Event.Companion.UNLOAD: EventType +inline val Event.Companion.UNLOAD: EventType> get() = EventType("unload") diff --git a/kotlin-browser/src/jsMain/generated/web/window/Window.kt b/kotlin-browser/src/jsMain/generated/web/window/Window.kt index 90169d6c09193..63a7187011222 100644 --- a/kotlin-browser/src/jsMain/generated/web/window/Window.kt +++ b/kotlin-browser/src/jsMain/generated/web/window/Window.kt @@ -77,21 +77,21 @@ sealed external class Window : * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicemotion_event) */ - var ondevicemotion: EventHandler? + var ondevicemotion: EventHandler>? /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientation_event) */ - var ondeviceorientation: EventHandler? + var ondeviceorientation: EventHandler>? /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientationabsolute_event) */ - var ondeviceorientationabsolute: EventHandler? + var ondeviceorientationabsolute: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/opener) diff --git a/kotlin-browser/src/jsMain/generated/web/window/WindowEventHandlers.kt b/kotlin-browser/src/jsMain/generated/web/window/WindowEventHandlers.kt index ea4c6face4b9d..c230a191638fe 100644 --- a/kotlin-browser/src/jsMain/generated/web/window/WindowEventHandlers.kt +++ b/kotlin-browser/src/jsMain/generated/web/window/WindowEventHandlers.kt @@ -16,119 +16,119 @@ external interface WindowEventHandlers { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/afterprint_event) */ - var onafterprint: EventHandler? + var onafterprint: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeprint_event) */ - var onbeforeprint: EventHandler? + var onbeforeprint: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeunload_event) */ - var onbeforeunload: EventHandler? + var onbeforeunload: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepadconnected_event) */ - var ongamepadconnected: EventHandler? + var ongamepadconnected: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepaddisconnected_event) */ - var ongamepaddisconnected: EventHandler? + var ongamepaddisconnected: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/hashchange_event) */ - var onhashchange: EventHandler? + var onhashchange: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/languagechange_event) */ - var onlanguagechange: EventHandler? + var onlanguagechange: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/message_event) */ - var onmessage: EventHandler>? + var onmessage: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/messageerror_event) */ - var onmessageerror: EventHandler>? + var onmessageerror: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/offline_event) */ - var onoffline: EventHandler? + var onoffline: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/online_event) */ - var ononline: EventHandler? + var ononline: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagehide_event) */ - var onpagehide: EventHandler? + var onpagehide: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageshow_event) */ - var onpageshow: EventHandler? + var onpageshow: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/popstate_event) */ - var onpopstate: EventHandler? + var onpopstate: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/rejectionhandled_event) */ - var onrejectionhandled: EventHandler? + var onrejectionhandled: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/storage_event) */ - var onstorage: EventHandler? + var onstorage: EventHandler>? get() = definedExternally set(value) = definedExternally /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */ - var onunhandledrejection: EventHandler? + var onunhandledrejection: EventHandler>? get() = definedExternally set(value) = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/workers/AbstractWorker.kt b/kotlin-browser/src/jsMain/generated/web/workers/AbstractWorker.kt index 5de7075202594..e26370a35f84b 100644 --- a/kotlin-browser/src/jsMain/generated/web/workers/AbstractWorker.kt +++ b/kotlin-browser/src/jsMain/generated/web/workers/AbstractWorker.kt @@ -14,7 +14,7 @@ external interface AbstractWorker : EventTarget { /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/error_event) */ - var onerror: EventHandler? + var onerror: EventHandler>? get() = definedExternally set(value) = definedExternally } diff --git a/kotlin-browser/src/jsMain/generated/web/workers/DedicatedWorkerGlobalScope.kt b/kotlin-browser/src/jsMain/generated/web/workers/DedicatedWorkerGlobalScope.kt index 9ef694e0aab08..06fa4ecc9056d 100644 --- a/kotlin-browser/src/jsMain/generated/web/workers/DedicatedWorkerGlobalScope.kt +++ b/kotlin-browser/src/jsMain/generated/web/workers/DedicatedWorkerGlobalScope.kt @@ -26,17 +26,17 @@ sealed external class DedicatedWorkerGlobalScope : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */ - var onmessage: EventHandler>? + var onmessage: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */ - var onmessageerror: EventHandler>? + var onmessageerror: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */ - var onrtctransform: EventHandler? + var onrtctransform: EventHandler>? /** * Aborts dedicatedWorkerGlobal. diff --git a/kotlin-browser/src/jsMain/generated/web/workers/Event.types.kt b/kotlin-browser/src/jsMain/generated/web/workers/Event.types.kt index de45fcd56c83f..477e12ee0ede5 100644 --- a/kotlin-browser/src/jsMain/generated/web/workers/Event.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/workers/Event.types.kt @@ -5,11 +5,11 @@ package web.workers import web.events.Event import web.events.EventType -inline val Event.Companion.LANGUAGE_CHANGE: EventType +inline val Event.Companion.LANGUAGE_CHANGE: EventType> get() = EventType("languagechange") -inline val Event.Companion.OFFLINE: EventType +inline val Event.Companion.OFFLINE: EventType> get() = EventType("offline") -inline val Event.Companion.ONLINE: EventType +inline val Event.Companion.ONLINE: EventType> get() = EventType("online") diff --git a/kotlin-browser/src/jsMain/generated/web/workers/SharedWorkerGlobalScope.kt b/kotlin-browser/src/jsMain/generated/web/workers/SharedWorkerGlobalScope.kt index d20329329c88e..b735ed68c17c3 100644 --- a/kotlin-browser/src/jsMain/generated/web/workers/SharedWorkerGlobalScope.kt +++ b/kotlin-browser/src/jsMain/generated/web/workers/SharedWorkerGlobalScope.kt @@ -20,7 +20,7 @@ sealed external class SharedWorkerGlobalScope : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/connect_event) */ - var onconnect: EventHandler>? + var onconnect: EventHandler>? /** * Aborts sharedWorkerGlobal. diff --git a/kotlin-browser/src/jsMain/generated/web/workers/Worker.kt b/kotlin-browser/src/jsMain/generated/web/workers/Worker.kt index 0aa8e267cdd18..10a20b703c2df 100644 --- a/kotlin-browser/src/jsMain/generated/web/workers/Worker.kt +++ b/kotlin-browser/src/jsMain/generated/web/workers/Worker.kt @@ -28,12 +28,12 @@ open external class Worker( /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/message_event) */ - var onmessage: EventHandler>? + var onmessage: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/messageerror_event) */ - var onmessageerror: EventHandler>? + var onmessageerror: EventHandler>? /** * Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. diff --git a/kotlin-browser/src/jsMain/generated/web/workers/WorkerGlobalScope.kt b/kotlin-browser/src/jsMain/generated/web/workers/WorkerGlobalScope.kt index 52a0fa8f6912c..aab291dbad9d1 100644 --- a/kotlin-browser/src/jsMain/generated/web/workers/WorkerGlobalScope.kt +++ b/kotlin-browser/src/jsMain/generated/web/workers/WorkerGlobalScope.kt @@ -34,22 +34,22 @@ abstract external class WorkerGlobalScope : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/error_event) */ - var onerror: EventHandler? + var onerror: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/languagechange_event) */ - var onlanguagechange: EventHandler? + var onlanguagechange: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/offline_event) */ - var onoffline: EventHandler? + var onoffline: EventHandler>? /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/online_event) */ - var ononline: EventHandler? - var onrejectionhandled: EventHandler? - var onunhandledrejection: EventHandler? + var ononline: EventHandler>? + var onrejectionhandled: EventHandler>? + var onunhandledrejection: EventHandler>? } diff --git a/kotlin-browser/src/jsMain/generated/web/xhr/Event.types.kt b/kotlin-browser/src/jsMain/generated/web/xhr/Event.types.kt index e233610e4c9f8..4b1756216a418 100644 --- a/kotlin-browser/src/jsMain/generated/web/xhr/Event.types.kt +++ b/kotlin-browser/src/jsMain/generated/web/xhr/Event.types.kt @@ -5,5 +5,5 @@ package web.xhr import web.events.Event import web.events.EventType -inline val Event.Companion.READY_STATE_CHANGE: EventType +inline val Event.Companion.READY_STATE_CHANGE: EventType> get() = EventType("readystatechange") diff --git a/kotlin-browser/src/jsMain/generated/web/xhr/XMLHttpRequest.kt b/kotlin-browser/src/jsMain/generated/web/xhr/XMLHttpRequest.kt index a3b20dcb54162..137b72788b4f2 100644 --- a/kotlin-browser/src/jsMain/generated/web/xhr/XMLHttpRequest.kt +++ b/kotlin-browser/src/jsMain/generated/web/xhr/XMLHttpRequest.kt @@ -21,7 +21,7 @@ open external class XMLHttpRequest : /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readystatechange_event) */ - var onreadystatechange: EventHandler? + var onreadystatechange: EventHandler>? /** * Returns client's state. diff --git a/kotlin-browser/src/jsMain/generated/web/xhr/XMLHttpRequestEventTarget.kt b/kotlin-browser/src/jsMain/generated/web/xhr/XMLHttpRequestEventTarget.kt index e035d450a1649..d1eefe27367f2 100644 --- a/kotlin-browser/src/jsMain/generated/web/xhr/XMLHttpRequestEventTarget.kt +++ b/kotlin-browser/src/jsMain/generated/web/xhr/XMLHttpRequestEventTarget.kt @@ -11,11 +11,11 @@ import web.events.ProgressEvent */ sealed external class XMLHttpRequestEventTarget : EventTarget { - var onabort: EventHandler? - var onerror: EventHandler? - var onload: EventHandler? - var onloadend: EventHandler? - var onloadstart: EventHandler? - var onprogress: EventHandler? - var ontimeout: EventHandler? + var onabort: EventHandler>? + var onerror: EventHandler>? + var onload: EventHandler>? + var onloadend: EventHandler>? + var onloadstart: EventHandler>? + var onprogress: EventHandler>? + var ontimeout: EventHandler>? } diff --git a/kotlin-electron/src/jsMain/kotlin/electron/core/GlobalEvent.ext.kt b/kotlin-electron/src/jsMain/kotlin/electron/core/GlobalEvent.ext.kt index d8ef1677d7379..c707f4e2d3a92 100644 --- a/kotlin-electron/src/jsMain/kotlin/electron/core/GlobalEvent.ext.kt +++ b/kotlin-electron/src/jsMain/kotlin/electron/core/GlobalEvent.ext.kt @@ -3,4 +3,4 @@ package electron.core inline val GlobalEvent.returnValue: Any? get() = asDynamic().returnValue -inline fun GlobalEvent.asEvent(): web.events.Event = asDynamic() +inline fun GlobalEvent.asEvent(): web.events.Event<*> = asDynamic() diff --git a/kotlin-mui-base/src/jsMain/generated/mui/base/ClickAwayListener.kt b/kotlin-mui-base/src/jsMain/generated/mui/base/ClickAwayListener.kt index 4512d77cf0b2c..a28c50f692c94 100644 --- a/kotlin-mui-base/src/jsMain/generated/mui/base/ClickAwayListener.kt +++ b/kotlin-mui-base/src/jsMain/generated/mui/base/ClickAwayListener.kt @@ -26,7 +26,7 @@ external interface ClickAwayListenerProps : react.PropsWithChildren { /** * Callback fired when a "click away" event is detected. */ - var onClickAway: (event: web.uievents.UIEvent) -> Unit + var onClickAway: (event: web.uievents.UIEvent<*>) -> Unit /** * The touch event to listen to. You can disable the listener by providing `false`. diff --git a/kotlin-mui-base/src/jsMain/generated/mui/base/useSlider.types.kt b/kotlin-mui-base/src/jsMain/generated/mui/base/useSlider.types.kt index 61e2a24e745f6..a5181f48702d4 100644 --- a/kotlin-mui-base/src/jsMain/generated/mui/base/useSlider.types.kt +++ b/kotlin-mui-base/src/jsMain/generated/mui/base/useSlider.types.kt @@ -69,7 +69,7 @@ external interface UseSliderParameters { * @param {number | number[]} value The new value. * @param {number} activeThumb Index of the currently moved thumb. */ - var onChange: ((event: Event, value: dynamic, activeThumb: Number) -> Unit)? + var onChange: ((event: Event<*>, value: dynamic, activeThumb: Number) -> Unit)? /** * Callback function that is fired when the `mouseup` is triggered. diff --git a/kotlin-mui-material/src/jsMain/generated/mui/material/Slider.kt b/kotlin-mui-material/src/jsMain/generated/mui/material/Slider.kt index 4d2c8be13250d..98bc972797308 100644 --- a/kotlin-mui-material/src/jsMain/generated/mui/material/Slider.kt +++ b/kotlin-mui-material/src/jsMain/generated/mui/material/Slider.kt @@ -175,7 +175,7 @@ external interface SliderOwnProps : * @param {number | number[]} value The new value. * @param {number} activeThumb Index of the currently moved thumb. */ - var onChange: ((event: Event, value: dynamic, activeThumb: Number) -> Unit)? + var onChange: ((event: Event<*>, value: dynamic, activeThumb: Number) -> Unit)? /** * Callback function that is fired when the `mouseup` is triggered. diff --git a/kotlin-node/src/jsMain/generated/node/events/EventEmitter.kt b/kotlin-node/src/jsMain/generated/node/events/EventEmitter.kt index 3122613e11e1d..b6c515e859fc2 100644 --- a/kotlin-node/src/jsMain/generated/node/events/EventEmitter.kt +++ b/kotlin-node/src/jsMain/generated/node/events/EventEmitter.kt @@ -691,7 +691,7 @@ open external class EventEmitter { * @experimental * @return Disposable that removes the `abort` listener. */ - fun addAbortListener(signal: AbortSignal, resource: (event: Event) -> Unit): Disposable + fun addAbortListener(signal: AbortSignal, resource: (event: Event) -> Unit): Disposable /** * This symbol shall be used to install a listener for only monitoring `'error'`events. Listeners installed using this symbol are called before the regular`'error'` listeners are called. diff --git a/kotlin-react-beautiful-dnd/src/jsMain/kotlin/react/beautiful/dnd/index.kt b/kotlin-react-beautiful-dnd/src/jsMain/kotlin/react/beautiful/dnd/index.kt index 8a0637932f54e..0c697789b9b5e 100644 --- a/kotlin-react-beautiful-dnd/src/jsMain/kotlin/react/beautiful/dnd/index.kt +++ b/kotlin-react-beautiful-dnd/src/jsMain/kotlin/react/beautiful/dnd/index.kt @@ -505,7 +505,7 @@ sealed external interface PreDragActions { } sealed external interface TryGetLockOptions { - var sourceEvent: Event? + var sourceEvent: Event<*>? } typealias TryGetLock = ( @@ -519,7 +519,7 @@ sealed external interface SensorAPI { var canGetLock: (id: DraggableId) -> Boolean var isLockClaimed: () -> Boolean var tryReleaseLock: () -> Unit - var findClosestDraggableId: (event: Event) -> DraggableId? + var findClosestDraggableId: (event: Event<*>) -> DraggableId? var findOptionsForDraggable: (id: DraggableId) -> DraggableOptions? } diff --git a/kotlin-react-dom/src/jsMain/generated/react/dom/events/AnimationEvent.kt b/kotlin-react-dom/src/jsMain/generated/react/dom/events/AnimationEvent.kt index d95410cde8e27..4fc6ac061b1e5 100644 --- a/kotlin-react-dom/src/jsMain/generated/react/dom/events/AnimationEvent.kt +++ b/kotlin-react-dom/src/jsMain/generated/react/dom/events/AnimationEvent.kt @@ -4,7 +4,7 @@ package react.dom.events import web.dom.Element -external interface AnimationEvent : SyntheticEvent { +external interface AnimationEvent : SyntheticEvent> { val animationName: String val elapsedTime: Double val pseudoElement: String diff --git a/kotlin-react-dom/src/jsMain/generated/react/dom/events/BaseSyntheticEvent.kt b/kotlin-react-dom/src/jsMain/generated/react/dom/events/BaseSyntheticEvent.kt index f8bae0141fcf3..06566b72e97ab 100644 --- a/kotlin-react-dom/src/jsMain/generated/react/dom/events/BaseSyntheticEvent.kt +++ b/kotlin-react-dom/src/jsMain/generated/react/dom/events/BaseSyntheticEvent.kt @@ -3,10 +3,11 @@ package react.dom.events import web.events.Event +import web.events.EventTarget import web.events.EventType import web.time.DOMHighResTimeStamp -external interface BaseSyntheticEvent { +external interface BaseSyntheticEvent, out C : EventTarget, out T : EventTarget> { val nativeEvent: E val currentTarget: C val target: T diff --git a/kotlin-react-dom/src/jsMain/generated/react/dom/events/ChangeEvent.kt b/kotlin-react-dom/src/jsMain/generated/react/dom/events/ChangeEvent.kt index 1977d9fc03879..4f6d331d993e0 100644 --- a/kotlin-react-dom/src/jsMain/generated/react/dom/events/ChangeEvent.kt +++ b/kotlin-react-dom/src/jsMain/generated/react/dom/events/ChangeEvent.kt @@ -5,6 +5,6 @@ package react.dom.events import web.dom.Element import web.events.Event -external interface ChangeEvent : SyntheticEvent { +external interface ChangeEvent : SyntheticEvent> { override val target: T } diff --git a/kotlin-react-dom/src/jsMain/generated/react/dom/events/ClipboardEvent.kt b/kotlin-react-dom/src/jsMain/generated/react/dom/events/ClipboardEvent.kt index 1601dae2cce9f..d04ef7749fad2 100644 --- a/kotlin-react-dom/src/jsMain/generated/react/dom/events/ClipboardEvent.kt +++ b/kotlin-react-dom/src/jsMain/generated/react/dom/events/ClipboardEvent.kt @@ -5,6 +5,6 @@ package react.dom.events import web.data.DataTransfer import web.dom.Element -external interface ClipboardEvent : SyntheticEvent { +external interface ClipboardEvent : SyntheticEvent> { val clipboardData: DataTransfer } diff --git a/kotlin-react-dom/src/jsMain/generated/react/dom/events/CompositionEvent.kt b/kotlin-react-dom/src/jsMain/generated/react/dom/events/CompositionEvent.kt index a70330350f19b..6899545afa630 100644 --- a/kotlin-react-dom/src/jsMain/generated/react/dom/events/CompositionEvent.kt +++ b/kotlin-react-dom/src/jsMain/generated/react/dom/events/CompositionEvent.kt @@ -4,6 +4,6 @@ package react.dom.events import web.dom.Element -external interface CompositionEvent : SyntheticEvent { +external interface CompositionEvent : SyntheticEvent> { val data: String } diff --git a/kotlin-react-dom/src/jsMain/generated/react/dom/events/DragEvent.kt b/kotlin-react-dom/src/jsMain/generated/react/dom/events/DragEvent.kt index e0e3e4fac536c..0be5cd7645927 100644 --- a/kotlin-react-dom/src/jsMain/generated/react/dom/events/DragEvent.kt +++ b/kotlin-react-dom/src/jsMain/generated/react/dom/events/DragEvent.kt @@ -5,6 +5,6 @@ package react.dom.events import web.data.DataTransfer import web.dom.Element -external interface DragEvent : MouseEvent { +external interface DragEvent : MouseEvent> { val dataTransfer: DataTransfer } diff --git a/kotlin-react-dom/src/jsMain/generated/react/dom/events/FocusEvent.kt b/kotlin-react-dom/src/jsMain/generated/react/dom/events/FocusEvent.kt index 766265c4a2d5b..32141f5d00a3e 100644 --- a/kotlin-react-dom/src/jsMain/generated/react/dom/events/FocusEvent.kt +++ b/kotlin-react-dom/src/jsMain/generated/react/dom/events/FocusEvent.kt @@ -5,7 +5,7 @@ package react.dom.events import web.dom.Element import web.events.EventTarget -external interface FocusEvent : SyntheticEvent { +external interface FocusEvent : SyntheticEvent> { val relatedTarget: EventTarget? override val target: T } diff --git a/kotlin-react-dom/src/jsMain/generated/react/dom/events/FormEvent.kt b/kotlin-react-dom/src/jsMain/generated/react/dom/events/FormEvent.kt index b5b9bb6760f1d..109ed24123a05 100644 --- a/kotlin-react-dom/src/jsMain/generated/react/dom/events/FormEvent.kt +++ b/kotlin-react-dom/src/jsMain/generated/react/dom/events/FormEvent.kt @@ -5,4 +5,4 @@ package react.dom.events import web.dom.Element import web.events.Event -external interface FormEvent : SyntheticEvent +external interface FormEvent : SyntheticEvent> diff --git a/kotlin-react-dom/src/jsMain/generated/react/dom/events/InvalidEvent.kt b/kotlin-react-dom/src/jsMain/generated/react/dom/events/InvalidEvent.kt index 183238ee237cd..273ba7471c87d 100644 --- a/kotlin-react-dom/src/jsMain/generated/react/dom/events/InvalidEvent.kt +++ b/kotlin-react-dom/src/jsMain/generated/react/dom/events/InvalidEvent.kt @@ -5,6 +5,6 @@ package react.dom.events import web.dom.Element import web.events.Event -external interface InvalidEvent : SyntheticEvent { +external interface InvalidEvent : SyntheticEvent> { override val target: T } diff --git a/kotlin-react-dom/src/jsMain/generated/react/dom/events/KeyboardEvent.kt b/kotlin-react-dom/src/jsMain/generated/react/dom/events/KeyboardEvent.kt index 9aa891cb5ec10..69a17594fc2b1 100644 --- a/kotlin-react-dom/src/jsMain/generated/react/dom/events/KeyboardEvent.kt +++ b/kotlin-react-dom/src/jsMain/generated/react/dom/events/KeyboardEvent.kt @@ -6,7 +6,7 @@ import web.dom.Element import web.keyboard.KeyCode import web.keyboard.ModifierKeyCode -external interface KeyboardEvent : UIEvent { +external interface KeyboardEvent : UIEvent> { val altKey: Boolean val ctrlKey: Boolean val code: KeyCode diff --git a/kotlin-react-dom/src/jsMain/generated/react/dom/events/MouseEvent.kt b/kotlin-react-dom/src/jsMain/generated/react/dom/events/MouseEvent.kt index 4a15f4e8ed357..c6b22379ddcea 100644 --- a/kotlin-react-dom/src/jsMain/generated/react/dom/events/MouseEvent.kt +++ b/kotlin-react-dom/src/jsMain/generated/react/dom/events/MouseEvent.kt @@ -8,7 +8,7 @@ import web.keyboard.ModifierKeyCode import web.uievents.MouseButton import web.uievents.MouseButtons -external interface MouseEvent : UIEvent { +external interface MouseEvent> : UIEvent { val altKey: Boolean val button: MouseButton val buttons: MouseButtons diff --git a/kotlin-react-dom/src/jsMain/generated/react/dom/events/NativeEvents.kt b/kotlin-react-dom/src/jsMain/generated/react/dom/events/NativeEvents.kt index f86cb510bb13a..49ea0670cd0f6 100644 --- a/kotlin-react-dom/src/jsMain/generated/react/dom/events/NativeEvents.kt +++ b/kotlin-react-dom/src/jsMain/generated/react/dom/events/NativeEvents.kt @@ -2,26 +2,26 @@ package react.dom.events -typealias NativeAnimationEvent = web.animations.AnimationEvent +typealias NativeAnimationEvent = web.animations.AnimationEvent -typealias NativeClipboardEvent = web.clipboard.ClipboardEvent +typealias NativeClipboardEvent = web.clipboard.ClipboardEvent -typealias NativeCompositionEvent = web.uievents.CompositionEvent +typealias NativeCompositionEvent = web.uievents.CompositionEvent -typealias NativeDragEvent = web.uievents.DragEvent +typealias NativeDragEvent = web.uievents.DragEvent -typealias NativeFocusEvent = web.uievents.FocusEvent +typealias NativeFocusEvent = web.uievents.FocusEvent -typealias NativeKeyboardEvent = web.uievents.KeyboardEvent +typealias NativeKeyboardEvent = web.uievents.KeyboardEvent -typealias NativeMouseEvent = web.uievents.MouseEvent +typealias NativeMouseEvent = web.uievents.MouseEvent -typealias NativeTouchEvent = web.uievents.TouchEvent +typealias NativeTouchEvent = web.uievents.TouchEvent -typealias NativePointerEvent = web.uievents.PointerEvent +typealias NativePointerEvent = web.uievents.PointerEvent -typealias NativeTransitionEvent = web.cssom.TransitionEvent +typealias NativeTransitionEvent = web.cssom.TransitionEvent -typealias NativeUIEvent = web.uievents.UIEvent +typealias NativeUIEvent = web.uievents.UIEvent -typealias NativeWheelEvent = web.uievents.WheelEvent +typealias NativeWheelEvent = web.uievents.WheelEvent diff --git a/kotlin-react-dom/src/jsMain/generated/react/dom/events/PointerEvent.kt b/kotlin-react-dom/src/jsMain/generated/react/dom/events/PointerEvent.kt index 98a049a247e43..9a72425c4816b 100644 --- a/kotlin-react-dom/src/jsMain/generated/react/dom/events/PointerEvent.kt +++ b/kotlin-react-dom/src/jsMain/generated/react/dom/events/PointerEvent.kt @@ -4,7 +4,7 @@ package react.dom.events import web.dom.Element -external interface PointerEvent : MouseEvent { +external interface PointerEvent : MouseEvent> { val pointerId: Int val pressure: Double val tangentialPressure: Double diff --git a/kotlin-react-dom/src/jsMain/generated/react/dom/events/SyntheticEvent.kt b/kotlin-react-dom/src/jsMain/generated/react/dom/events/SyntheticEvent.kt index 4510cc1a973de..c39fc7a997b4d 100644 --- a/kotlin-react-dom/src/jsMain/generated/react/dom/events/SyntheticEvent.kt +++ b/kotlin-react-dom/src/jsMain/generated/react/dom/events/SyntheticEvent.kt @@ -6,4 +6,4 @@ import web.dom.Element import web.events.Event import web.events.EventTarget -external interface SyntheticEvent : BaseSyntheticEvent +external interface SyntheticEvent> : BaseSyntheticEvent diff --git a/kotlin-react-dom/src/jsMain/generated/react/dom/events/TouchEvent.kt b/kotlin-react-dom/src/jsMain/generated/react/dom/events/TouchEvent.kt index e70be60c22cc6..afe8420c3887b 100644 --- a/kotlin-react-dom/src/jsMain/generated/react/dom/events/TouchEvent.kt +++ b/kotlin-react-dom/src/jsMain/generated/react/dom/events/TouchEvent.kt @@ -5,7 +5,7 @@ package react.dom.events import web.dom.Element import web.keyboard.ModifierKeyCode -external interface TouchEvent : UIEvent { +external interface TouchEvent : UIEvent> { val altKey: Boolean val changedTouches: web.uievents.TouchList val ctrlKey: Boolean diff --git a/kotlin-react-dom/src/jsMain/generated/react/dom/events/TransitionEvent.kt b/kotlin-react-dom/src/jsMain/generated/react/dom/events/TransitionEvent.kt index 59ba947cca950..17e9e82879f9e 100644 --- a/kotlin-react-dom/src/jsMain/generated/react/dom/events/TransitionEvent.kt +++ b/kotlin-react-dom/src/jsMain/generated/react/dom/events/TransitionEvent.kt @@ -4,7 +4,7 @@ package react.dom.events import web.dom.Element -external interface TransitionEvent : SyntheticEvent { +external interface TransitionEvent : SyntheticEvent> { val elapsedTime: Double val propertyName: String val pseudoElement: String diff --git a/kotlin-react-dom/src/jsMain/generated/react/dom/events/UIEvent.kt b/kotlin-react-dom/src/jsMain/generated/react/dom/events/UIEvent.kt index b95d91310ee4a..6c8b62e33a009 100644 --- a/kotlin-react-dom/src/jsMain/generated/react/dom/events/UIEvent.kt +++ b/kotlin-react-dom/src/jsMain/generated/react/dom/events/UIEvent.kt @@ -5,7 +5,7 @@ package react.dom.events import web.dom.Element import web.window.Window -external interface UIEvent : SyntheticEvent { +external interface UIEvent> : SyntheticEvent { val detail: Int val view: Window } diff --git a/kotlin-react-dom/src/jsMain/generated/react/dom/events/WheelEvent.kt b/kotlin-react-dom/src/jsMain/generated/react/dom/events/WheelEvent.kt index 5ee1ea3b3c5be..7dc09dde0a9f1 100644 --- a/kotlin-react-dom/src/jsMain/generated/react/dom/events/WheelEvent.kt +++ b/kotlin-react-dom/src/jsMain/generated/react/dom/events/WheelEvent.kt @@ -4,7 +4,7 @@ package react.dom.events import web.dom.Element -external interface WheelEvent : MouseEvent { +external interface WheelEvent : MouseEvent> { val deltaMode: Int val deltaX: Double val deltaY: Double diff --git a/kotlin-react-router-dom/src/jsMain/generated/react/router/dom/LimitedMouseEvent.kt b/kotlin-react-router-dom/src/jsMain/generated/react/router/dom/LimitedMouseEvent.kt index d4b63d3808f55..978ecec8a802a 100644 --- a/kotlin-react-router-dom/src/jsMain/generated/react/router/dom/LimitedMouseEvent.kt +++ b/kotlin-react-router-dom/src/jsMain/generated/react/router/dom/LimitedMouseEvent.kt @@ -5,4 +5,4 @@ package react.router.dom import web.uievents.MouseEvent -typealias LimitedMouseEvent = MouseEvent +typealias LimitedMouseEvent = MouseEvent<*> diff --git a/kotlin-react-router-dom/src/jsMain/generated/react/router/dom/useBeforeUnload.kt b/kotlin-react-router-dom/src/jsMain/generated/react/router/dom/useBeforeUnload.kt index 1a92cc5d4a91b..898d8cfa39462 100644 --- a/kotlin-react-router-dom/src/jsMain/generated/react/router/dom/useBeforeUnload.kt +++ b/kotlin-react-router-dom/src/jsMain/generated/react/router/dom/useBeforeUnload.kt @@ -15,6 +15,6 @@ import web.window.BeforeUnloadEvent * `React.useCallback()`. */ external fun useBeforeUnload( - callback: (event: BeforeUnloadEvent) -> Any?, + callback: (event: BeforeUnloadEvent<*>) -> Any?, options: UseBeforeUnloadOptions = definedExternally, -): Unit +) diff --git a/kotlin-react-router-dom/src/jsMain/generated/react/router/dom/useLinkClickHandler.kt b/kotlin-react-router-dom/src/jsMain/generated/react/router/dom/useLinkClickHandler.kt index 88f47fc2df9bb..19ed75e388524 100644 --- a/kotlin-react-router-dom/src/jsMain/generated/react/router/dom/useLinkClickHandler.kt +++ b/kotlin-react-router-dom/src/jsMain/generated/react/router/dom/useLinkClickHandler.kt @@ -6,7 +6,6 @@ package react.router.dom import remix.run.router.To import web.dom.Element -import web.uievents.MouseEvent /** * Handles the click behavior for router `` components. This is useful if @@ -16,4 +15,4 @@ import web.uievents.MouseEvent external fun useLinkClickHandler( to: To, options: UseLinkClickHandlerOptions = definedExternally, -): (event: react.dom.events.MouseEvent) -> Unit +): (event: react.dom.events.MouseEvent) -> Unit diff --git a/kotlin-react-select/src/jsMain/kotlin/react/select/Select.kt b/kotlin-react-select/src/jsMain/kotlin/react/select/Select.kt index 8af898d399b99..8312aef53b3a8 100644 --- a/kotlin-react-select/src/jsMain/kotlin/react/select/Select.kt +++ b/kotlin-react-select/src/jsMain/kotlin/react/select/Select.kt @@ -204,10 +204,10 @@ external interface SelectProps