Skip to content

Commit 6305371

Browse files
authored
Merge pull request #25 from Kotlin/fix-issue-24
fix(#24): add defaults for functions that are broken to resolve from JS
2 parents 9d33659 + 98857df commit 6305371

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/jsMain/kotlin/org.w3c/org.w3c.dom.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3773,17 +3773,17 @@ actual external interface WindowOrWorkerGlobalScope {
37733773
actual fun atob(data: String): String
37743774
@Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
37753775
@kotlin.internal.LowPriorityInOverloadResolution
3776-
actual fun setTimeout(handler: dynamic, timeout: Int, vararg arguments: Any?): Int
3776+
actual fun setTimeout(handler: dynamic, timeout: Int = definedExternally, vararg arguments: Any?): Int
37773777
actual fun clearTimeout(handle: Int)
37783778
@Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
37793779
@kotlin.internal.LowPriorityInOverloadResolution
3780-
actual fun setInterval(handler: dynamic, timeout: Int, vararg arguments: Any?): Int
3780+
actual fun setInterval(handler: dynamic, timeout: Int = definedExternally, vararg arguments: Any?): Int
37813781
actual fun clearInterval(handle: Int)
37823782
actual fun createImageBitmap(image: ImageBitmapSource, options: ImageBitmapOptions): Promise<ImageBitmap>
37833783
actual fun createImageBitmap(image: ImageBitmapSource, sx: Int, sy: Int, sw: Int, sh: Int, options: ImageBitmapOptions): Promise<ImageBitmap>
37843784
@Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
37853785
@kotlin.internal.LowPriorityInOverloadResolution
3786-
actual fun fetch(input: dynamic, init: RequestInit): Promise<Response>
3786+
actual fun fetch(input: dynamic, init: RequestInit = definedExternally): Promise<Response>
37873787
}
37883788

37893789
/**
@@ -6036,13 +6036,13 @@ actual external interface GeometryUtils {
60366036
actual fun getBoxQuads(options: BoxQuadOptions): Array<DOMQuad>
60376037
@Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
60386038
@kotlin.internal.LowPriorityInOverloadResolution
6039-
actual fun convertQuadFromNode(quad: dynamic, from: dynamic, options: ConvertCoordinateOptions): DOMQuad
6039+
actual fun convertQuadFromNode(quad: dynamic, from: dynamic, options: ConvertCoordinateOptions = definedExternally): DOMQuad
60406040
@Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
60416041
@kotlin.internal.LowPriorityInOverloadResolution
6042-
actual fun convertRectFromNode(rect: DOMRectReadOnly, from: dynamic, options: ConvertCoordinateOptions): DOMQuad
6042+
actual fun convertRectFromNode(rect: DOMRectReadOnly, from: dynamic, options: ConvertCoordinateOptions = definedExternally): DOMQuad
60436043
@Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
60446044
@kotlin.internal.LowPriorityInOverloadResolution
6045-
actual fun convertPointFromNode(point: DOMPointInit, from: dynamic, options: ConvertCoordinateOptions): DOMPoint
6045+
actual fun convertPointFromNode(point: DOMPointInit, from: dynamic, options: ConvertCoordinateOptions = definedExternally): DOMPoint
60466046
}
60476047

60486048
/**

0 commit comments

Comments
 (0)