Skip to content

Commit c79686c

Browse files
committed
IDL 3.61.4 [generated]
1 parent f803535 commit c79686c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

kotlin-browser/src/commonMain/generated/web/dom/Document.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ open external class Document :
254254
/**
255255
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilitychange_event)
256256
*/
257-
var onvisibilitychange: EventHandler<Event, Document, Document>?
257+
var onvisibilitychange: EventHandler<Event, Document, Window>?
258258

259259
@Suppress("WRONG_JS_INTEROP_TYPE")
260260
override val ownerDocument: Void
@@ -1069,7 +1069,7 @@ open external class Document :
10691069
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilitychange_event)
10701070
*/
10711071
@JsEvent("visibilitychange")
1072-
val visibilityChangeEvent: EventInstance<Event, Document /* this */, Document /* this */>
1072+
val visibilityChangeEvent: EventInstance<Event, Document /* this */, Window>
10731073

10741074
/**
10751075
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/wheel_event)

kotlin-browser/src/commonMain/generated/web/window/Window.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,12 @@ private constructor() :
935935
@JsEvent("unload")
936936
val unloadEvent: EventInstance<Event, Window /* this */, Window /* this */>
937937

938+
/**
939+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visibilitychange_event)
940+
*/
941+
@JsEvent("visibilitychange")
942+
val visibilityChangeEvent: EventInstance<Event, Window /* this */, Window>
943+
938944
/**
939945
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/wheel_event)
940946
*/

0 commit comments

Comments
 (0)