From 238da4c79313e8a796bf2d59bfb119b3a1589213 Mon Sep 17 00:00:00 2001 From: Svyatoslav Kuzmich Date: Fri, 13 Jan 2023 18:03:08 +0100 Subject: [PATCH] [Wasm] stdlib NFC: Suppress cast warnings in org.w3c Also fix dukat build and update copyright year in generated files. --- .../wasm/src/org.w3c/org.khronos.webgl.kt | 4 +- .../wasm/src/org.w3c/org.w3c.css.masking.kt | 2 +- .../wasm/src/org.w3c/org.w3c.dom.clipboard.kt | 4 +- .../wasm/src/org.w3c/org.w3c.dom.css.kt | 2 +- .../src/org.w3c/org.w3c.dom.encryptedmedia.kt | 6 ++- .../wasm/src/org.w3c/org.w3c.dom.events.kt | 10 ++++- .../stdlib/wasm/src/org.w3c/org.w3c.dom.kt | 37 ++++++++++++++++++- .../src/org.w3c/org.w3c.dom.mediacapture.kt | 20 +++++++++- .../src/org.w3c/org.w3c.dom.mediasource.kt | 2 +- .../wasm/src/org.w3c/org.w3c.dom.parsing.kt | 2 +- .../src/org.w3c/org.w3c.dom.pointerevents.kt | 3 +- .../wasm/src/org.w3c/org.w3c.dom.svg.kt | 3 +- .../wasm/src/org.w3c/org.w3c.dom.url.kt | 2 +- .../stdlib/wasm/src/org.w3c/org.w3c.fetch.kt | 4 +- .../stdlib/wasm/src/org.w3c/org.w3c.files.kt | 4 +- .../wasm/src/org.w3c/org.w3c.notifications.kt | 6 ++- .../wasm/src/org.w3c/org.w3c.performance.kt | 2 +- .../wasm/src/org.w3c/org.w3c.workers.kt | 13 ++++++- .../stdlib/wasm/src/org.w3c/org.w3c.xhr.kt | 3 +- libraries/tools/dukat/build.gradle.kts | 6 +-- .../kotlin/tools/dukat/launchWasm.kt | 19 +++++++++- 21 files changed, 131 insertions(+), 23 deletions(-) diff --git a/libraries/stdlib/wasm/src/org.w3c/org.khronos.webgl.kt b/libraries/stdlib/wasm/src/org.w3c/org.khronos.webgl.kt index 6c120828727..df43e87d6c7 100644 --- a/libraries/stdlib/wasm/src/org.w3c/org.khronos.webgl.kt +++ b/libraries/stdlib/wasm/src/org.w3c/org.khronos.webgl.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -51,6 +51,7 @@ public inline fun WebGLContextAttributes(alpha: Boolean? = true, depth: Boolean? o["preserveDrawingBuffer"] = preserveDrawingBuffer o["preferLowPowerToHighPerformance"] = preferLowPowerToHighPerformance o["failIfMajorPerformanceCaveat"] = failIfMajorPerformanceCaveat + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as WebGLContextAttributes } @@ -899,6 +900,7 @@ public inline fun WebGLContextEventInit(statusMessage: String? = "", bubbles: Bo o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as WebGLContextEventInit } diff --git a/libraries/stdlib/wasm/src/org.w3c/org.w3c.css.masking.kt b/libraries/stdlib/wasm/src/org.w3c/org.w3c.css.masking.kt index 83aca27ee1a..3c61723b033 100644 --- a/libraries/stdlib/wasm/src/org.w3c/org.w3c.css.masking.kt +++ b/libraries/stdlib/wasm/src/org.w3c/org.w3c.css.masking.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ diff --git a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.clipboard.kt b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.clipboard.kt index 1880fb0bed0..89f25971d33 100644 --- a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.clipboard.kt +++ b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.clipboard.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -27,6 +27,7 @@ public inline fun ClipboardEventInit(clipboardData: DataTransfer? = null, bubble o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as ClipboardEventInit } @@ -65,5 +66,6 @@ public external interface ClipboardPermissionDescriptor { public inline fun ClipboardPermissionDescriptor(allowWithoutGesture: Boolean? = false): ClipboardPermissionDescriptor { val o = js("({})") o["allowWithoutGesture"] = allowWithoutGesture + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as ClipboardPermissionDescriptor } \ No newline at end of file diff --git a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.css.kt b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.css.kt index 021c6d78eba..4a16c41b483 100644 --- a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.css.kt +++ b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.css.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ diff --git a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.encryptedmedia.kt b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.encryptedmedia.kt index 4450abef2bb..ba15686fa13 100644 --- a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.encryptedmedia.kt +++ b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.encryptedmedia.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -51,6 +51,7 @@ public inline fun MediaKeySystemConfiguration(label: String? = "", initDataTypes o["distinctiveIdentifier"] = distinctiveIdentifier o["persistentState"] = persistentState o["sessionTypes"] = sessionTypes + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as MediaKeySystemConfiguration } @@ -69,6 +70,7 @@ public inline fun MediaKeySystemMediaCapability(contentType: String? = "", robus val o = js("({})") o["contentType"] = contentType o["robustness"] = robustness + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as MediaKeySystemMediaCapability } @@ -144,6 +146,7 @@ public inline fun MediaKeyMessageEventInit(messageType: MediaKeyMessageType?, me o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as MediaKeyMessageEventInit } @@ -177,6 +180,7 @@ public inline fun MediaEncryptedEventInit(initDataType: String? = "", initData: o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as MediaEncryptedEventInit } diff --git a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.events.kt b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.events.kt index 5887b120f30..922409e41e9 100644 --- a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.events.kt +++ b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.events.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -45,6 +45,7 @@ public inline fun UIEventInit(view: Window? = null, detail: Int? = 0, bubbles: B o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as UIEventInit } @@ -78,6 +79,7 @@ public inline fun FocusEventInit(relatedTarget: EventTarget? = null, view: Windo o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as FocusEventInit } @@ -171,6 +173,7 @@ public inline fun MouseEventInit(screenX: Int? = 0, screenY: Int? = 0, clientX: o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as MouseEventInit } @@ -242,6 +245,7 @@ public inline fun EventModifierInit(ctrlKey: Boolean? = false, shiftKey: Boolean o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as EventModifierInit } @@ -315,6 +319,7 @@ public inline fun WheelEventInit(deltaX: Double? = 0.0, deltaY: Double? = 0.0, d o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as WheelEventInit } @@ -353,6 +358,7 @@ public inline fun InputEventInit(data: String? = "", isComposing: Boolean? = fal o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as InputEventInit } @@ -432,6 +438,7 @@ public inline fun KeyboardEventInit(key: String? = "", code: String? = "", locat o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as KeyboardEventInit } @@ -465,6 +472,7 @@ public inline fun CompositionEventInit(data: String? = "", view: Window? = null, o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as CompositionEventInit } diff --git a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.kt b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.kt index e9149102864..eb85bf4be91 100644 --- a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.kt +++ b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -1506,6 +1506,7 @@ public inline fun TrackEventInit(track: UnionAudioTrackOrTextTrackOrVideoTrack? o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as TrackEventInit } @@ -2561,6 +2562,7 @@ public inline fun RelatedEventInit(relatedTarget: EventTarget? = null, bubbles: o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as RelatedEventInit } @@ -2701,6 +2703,7 @@ public external interface AssignedNodesOptions { public inline fun AssignedNodesOptions(flatten: Boolean? = false): AssignedNodesOptions { val o = js("({})") o["flatten"] = flatten + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as AssignedNodesOptions } @@ -2747,6 +2750,7 @@ public external interface CanvasRenderingContext2DSettings { public inline fun CanvasRenderingContext2DSettings(alpha: Boolean? = true): CanvasRenderingContext2DSettings { val o = js("({})") o["alpha"] = alpha + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as CanvasRenderingContext2DSettings } @@ -2961,6 +2965,7 @@ public inline fun HitRegionOptions(path: Path2D? = null, fillRule: CanvasFillRul o["control"] = control o["label"] = label o["role"] = role + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as HitRegionOptions } @@ -3014,6 +3019,7 @@ public external interface ImageBitmapRenderingContextSettings { public inline fun ImageBitmapRenderingContextSettings(alpha: Boolean? = true): ImageBitmapRenderingContextSettings { val o = js("({})") o["alpha"] = alpha + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as ImageBitmapRenderingContextSettings } @@ -3037,6 +3043,7 @@ public external interface ElementDefinitionOptions { public inline fun ElementDefinitionOptions(extends: String? = undefined): ElementDefinitionOptions { val o = js("({})") o["extends"] = extends + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as ElementDefinitionOptions } @@ -3137,6 +3144,7 @@ public inline fun DragEventInit(dataTransfer: DataTransfer? = null, screenX: Int o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as DragEventInit } @@ -3278,6 +3286,7 @@ public inline fun PopStateEventInit(state: Any? = null, bubbles: Boolean? = fals o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as PopStateEventInit } @@ -3314,6 +3323,7 @@ public inline fun HashChangeEventInit(oldURL: String? = "", newURL: String? = "" o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as HashChangeEventInit } @@ -3345,6 +3355,7 @@ public inline fun PageTransitionEventInit(persisted: Boolean? = false, bubbles: o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as PageTransitionEventInit } @@ -3441,6 +3452,7 @@ public inline fun ErrorEventInit(message: String? = "", filename: String? = "", o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as ErrorEventInit } @@ -3475,6 +3487,7 @@ public inline fun PromiseRejectionEventInit(promise: Promise?, reason: Any o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as PromiseRejectionEventInit } @@ -3939,6 +3952,7 @@ public inline fun ImageBitmapOptions(imageOrientation: ImageOrientation? = Image o["resizeWidth"] = resizeWidth o["resizeHeight"] = resizeHeight o["resizeQuality"] = resizeQuality + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as ImageBitmapOptions } @@ -3991,6 +4005,7 @@ public inline fun MessageEventInit(data: Any? = null, origin: String? = "", last o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as MessageEventInit } @@ -4024,6 +4039,7 @@ public external interface EventSourceInit { public inline fun EventSourceInit(withCredentials: Boolean? = false): EventSourceInit { val o = js("({})") o["withCredentials"] = withCredentials + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as EventSourceInit } @@ -4093,6 +4109,7 @@ public inline fun CloseEventInit(wasClean: Boolean? = false, code: Short? = 0, r o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as CloseEventInit } @@ -4193,6 +4210,7 @@ public inline fun WorkerOptions(type: WorkerType? = WorkerType.CLASSIC, credenti val o = js("({})") o["type"] = type o["credentials"] = credentials + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as WorkerOptions } @@ -4315,6 +4333,7 @@ public inline fun StorageEventInit(key: String? = null, oldValue: String? = null o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as StorageEventInit } @@ -4538,6 +4557,7 @@ public inline fun EventInit(bubbles: Boolean? = false, cancelable: Boolean? = fa o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as EventInit } @@ -4570,6 +4590,7 @@ public inline fun CustomEventInit(detail: Any? = null, bubbles: Boolean? = false o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as CustomEventInit } @@ -4584,6 +4605,7 @@ public external interface EventListenerOptions { public inline fun EventListenerOptions(capture: Boolean? = false): EventListenerOptions { val o = js("({})") o["capture"] = capture + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as EventListenerOptions } @@ -4603,6 +4625,7 @@ public inline fun AddEventListenerOptions(passive: Boolean? = false, once: Boole o["passive"] = passive o["once"] = once o["capture"] = capture + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as AddEventListenerOptions } @@ -4736,6 +4759,7 @@ public inline fun MutationObserverInit(childList: Boolean? = false, attributes: o["attributeOldValue"] = attributeOldValue o["characterDataOldValue"] = characterDataOldValue o["attributeFilter"] = attributeFilter + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as MutationObserverInit } @@ -4821,6 +4845,7 @@ public external interface GetRootNodeOptions { public inline fun GetRootNodeOptions(composed: Boolean? = false): GetRootNodeOptions { val o = js("({})") o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as GetRootNodeOptions } @@ -5069,6 +5094,7 @@ public external interface ElementCreationOptions { public inline fun ElementCreationOptions(param_is: String? = undefined): ElementCreationOptions { val o = js("({})") o["is"] = param_is + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as ElementCreationOptions } @@ -5273,6 +5299,7 @@ public external interface ShadowRootInit { public inline fun ShadowRootInit(mode: ShadowRootMode?): ShadowRootInit { val o = js("({})") o["mode"] = mode + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as ShadowRootInit } @@ -5659,6 +5686,7 @@ public inline fun DOMPointInit(x: Double? = 0.0, y: Double? = 0.0, z: Double? = o["y"] = y o["z"] = z o["w"] = w + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as DOMPointInit } @@ -5709,6 +5737,7 @@ public inline fun DOMRectInit(x: Double? = 0.0, y: Double? = 0.0, width: Double? o["y"] = y o["width"] = width o["height"] = height + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as DOMRectInit } @@ -5836,6 +5865,7 @@ public external interface ScrollOptions { public inline fun ScrollOptions(behavior: ScrollBehavior? = ScrollBehavior.AUTO): ScrollOptions { val o = js("({})") o["behavior"] = behavior + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as ScrollOptions } @@ -5858,6 +5888,7 @@ public inline fun ScrollToOptions(left: Double? = undefined, top: Double? = unde o["left"] = left o["top"] = top o["behavior"] = behavior + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as ScrollToOptions } @@ -5907,6 +5938,7 @@ public inline fun MediaQueryListEventInit(media: String? = "", matches: Boolean? o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as MediaQueryListEventInit } @@ -5947,6 +5979,7 @@ public inline fun ScrollIntoViewOptions(block: ScrollLogicalPosition? = ScrollLo o["block"] = block o["inline"] = inline o["behavior"] = behavior + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as ScrollIntoViewOptions } @@ -5965,6 +5998,7 @@ public inline fun BoxQuadOptions(box: CSSBoxType? = CSSBoxType.BORDER, relativeT val o = js("({})") o["box"] = box o["relativeTo"] = relativeTo + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as BoxQuadOptions } @@ -5983,6 +6017,7 @@ public inline fun ConvertCoordinateOptions(fromBox: CSSBoxType? = CSSBoxType.BOR val o = js("({})") o["fromBox"] = fromBox o["toBox"] = toBox + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as ConvertCoordinateOptions } diff --git a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.mediacapture.kt b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.mediacapture.kt index 8f99ff91ea1..6a7d5d7d535 100644 --- a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.mediacapture.kt +++ b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.mediacapture.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -128,6 +128,7 @@ public inline fun MediaTrackSupportedConstraints(width: Boolean? = true, height: o["channelCount"] = channelCount o["deviceId"] = deviceId o["groupId"] = groupId + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as MediaTrackSupportedConstraints } @@ -202,6 +203,7 @@ public inline fun MediaTrackCapabilities(width: ULongRange? = undefined, height: o["channelCount"] = channelCount o["deviceId"] = deviceId o["groupId"] = groupId + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as MediaTrackCapabilities } @@ -235,6 +237,7 @@ public inline fun MediaTrackConstraints(advanced: Array o["channelCount"] = channelCount o["deviceId"] = deviceId o["groupId"] = groupId + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as MediaTrackConstraints } @@ -309,6 +312,7 @@ public inline fun MediaTrackConstraintSet(width: Dynamic? = undefined, height: D o["channelCount"] = channelCount o["deviceId"] = deviceId o["groupId"] = groupId + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as MediaTrackConstraintSet } @@ -386,6 +390,7 @@ public inline fun MediaTrackSettings(width: Int? = undefined, height: Int? = und o["channelCount"] = channelCount o["deviceId"] = deviceId o["groupId"] = groupId + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as MediaTrackSettings } @@ -415,6 +420,7 @@ public inline fun MediaStreamTrackEventInit(track: MediaStreamTrack?, bubbles: B o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as MediaStreamTrackEventInit } @@ -443,6 +449,7 @@ public inline fun OverconstrainedErrorEventInit(error: Dynamic? = null.unsafeCas o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as OverconstrainedErrorEventInit } @@ -489,6 +496,7 @@ public inline fun MediaStreamConstraints(video: Dynamic? = false.unsafeCast? = undefined): Constraints { val o = js("({})") o["advanced"] = advanced + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as Constraints } diff --git a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.mediasource.kt b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.mediasource.kt index cb5e70977ed..4ef9a8182ac 100644 --- a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.mediasource.kt +++ b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.mediasource.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ diff --git a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.parsing.kt b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.parsing.kt index 638051b453b..b7d1fca34fd 100644 --- a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.parsing.kt +++ b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.parsing.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ diff --git a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.pointerevents.kt b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.pointerevents.kt index ec86b31c223..313ceab64e0 100644 --- a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.pointerevents.kt +++ b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.pointerevents.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -87,6 +87,7 @@ public inline fun PointerEventInit(pointerId: Int? = 0, width: Double? = 1.0, he o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as PointerEventInit } diff --git a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.svg.kt b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.svg.kt index f5476c34301..9e263d9b727 100644 --- a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.svg.kt +++ b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.svg.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -69,6 +69,7 @@ public inline fun SVGBoundingBoxOptions(fill: Boolean? = true, stroke: Boolean? o["stroke"] = stroke o["markers"] = markers o["clipped"] = clipped + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as SVGBoundingBoxOptions } diff --git a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.url.kt b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.url.kt index 9ecbde5173b..27262c03397 100644 --- a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.url.kt +++ b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.url.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ diff --git a/libraries/stdlib/wasm/src/org.w3c/org.w3c.fetch.kt b/libraries/stdlib/wasm/src/org.w3c/org.w3c.fetch.kt index c9c8c254665..d039b7e626a 100644 --- a/libraries/stdlib/wasm/src/org.w3c/org.w3c.fetch.kt +++ b/libraries/stdlib/wasm/src/org.w3c/org.w3c.fetch.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -117,6 +117,7 @@ public inline fun RequestInit(method: String? = undefined, headers: Dynamic? = u o["integrity"] = integrity o["keepalive"] = keepalive o["window"] = window + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as RequestInit } @@ -166,6 +167,7 @@ public inline fun ResponseInit(status: Short? = 200, statusText: String? = "OK", o["status"] = status o["statusText"] = statusText o["headers"] = headers + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as ResponseInit } diff --git a/libraries/stdlib/wasm/src/org.w3c/org.w3c.files.kt b/libraries/stdlib/wasm/src/org.w3c/org.w3c.files.kt index eff07454b40..beedffef9e2 100644 --- a/libraries/stdlib/wasm/src/org.w3c/org.w3c.files.kt +++ b/libraries/stdlib/wasm/src/org.w3c/org.w3c.files.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -36,6 +36,7 @@ public external interface BlobPropertyBag { public inline fun BlobPropertyBag(type: String? = ""): BlobPropertyBag { val o = js("({})") o["type"] = type + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as BlobPropertyBag } @@ -59,6 +60,7 @@ public inline fun FilePropertyBag(lastModified: Int? = undefined, type: String? val o = js("({})") o["lastModified"] = lastModified o["type"] = type + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as FilePropertyBag } diff --git a/libraries/stdlib/wasm/src/org.w3c/org.w3c.notifications.kt b/libraries/stdlib/wasm/src/org.w3c/org.w3c.notifications.kt index e07480ce28f..c53ebfb6212 100644 --- a/libraries/stdlib/wasm/src/org.w3c/org.w3c.notifications.kt +++ b/libraries/stdlib/wasm/src/org.w3c/org.w3c.notifications.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -121,6 +121,7 @@ public inline fun NotificationOptions(dir: NotificationDirection? = Notification o["sticky"] = sticky o["data"] = data o["actions"] = actions + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as NotificationOptions } @@ -139,6 +140,7 @@ public inline fun NotificationAction(action: String?, title: String?, icon: Stri o["action"] = action o["title"] = title o["icon"] = icon + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as NotificationAction } @@ -153,6 +155,7 @@ public external interface GetNotificationOptions { public inline fun GetNotificationOptions(tag: String? = ""): GetNotificationOptions { val o = js("({})") o["tag"] = tag + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as GetNotificationOptions } @@ -187,6 +190,7 @@ public inline fun NotificationEventInit(notification: Notification?, action: Str o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as NotificationEventInit } diff --git a/libraries/stdlib/wasm/src/org.w3c/org.w3c.performance.kt b/libraries/stdlib/wasm/src/org.w3c/org.w3c.performance.kt index da6b7790d5c..40f4422c2d5 100644 --- a/libraries/stdlib/wasm/src/org.w3c/org.w3c.performance.kt +++ b/libraries/stdlib/wasm/src/org.w3c/org.w3c.performance.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ diff --git a/libraries/stdlib/wasm/src/org.w3c/org.w3c.workers.kt b/libraries/stdlib/wasm/src/org.w3c/org.w3c.workers.kt index 5cab4cadc5a..94bae068a9b 100644 --- a/libraries/stdlib/wasm/src/org.w3c/org.w3c.workers.kt +++ b/libraries/stdlib/wasm/src/org.w3c/org.w3c.workers.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -71,6 +71,7 @@ public inline fun RegistrationOptions(scope: String? = undefined, type: WorkerTy val o = js("({})") o["scope"] = scope o["type"] = type + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as RegistrationOptions } @@ -122,6 +123,7 @@ public inline fun ServiceWorkerMessageEventInit(data: Any? = undefined, origin: o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as ServiceWorkerMessageEventInit } @@ -187,6 +189,7 @@ public inline fun ClientQueryOptions(includeUncontrolled: Boolean? = false, type val o = js("({})") o["includeUncontrolled"] = includeUncontrolled o["type"] = type + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as ClientQueryOptions } @@ -213,6 +216,7 @@ public inline fun ExtendableEventInit(bubbles: Boolean? = false, cancelable: Boo o["bubbles"] = bubbles o["cancelable"] = cancelable o["composed"] = composed + @Suppress("UNCHECKED_CAST_TO_EXTERNAL_INTERFACE") return o as ExtendableEventInit } @@ -241,6 +245,7 @@ public inline fun ForeignFetchOptions(scopes: Array?, origins: Array