diff --git a/js/js.translator/testData/box/regression/companionObjectInExternalInterface.kt b/js/js.translator/testData/box/regression/companionObjectInExternalInterface.kt index 3ee97113c7c..123f77c9af7 100644 --- a/js/js.translator/testData/box/regression/companionObjectInExternalInterface.kt +++ b/js/js.translator/testData/box/regression/companionObjectInExternalInterface.kt @@ -3,6 +3,7 @@ // This hack is used in org.w3c.* part of standard library to represent unions of Strings // Test that we are not actually trying to access nonexistent companion object +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface I { companion object @@ -14,4 +15,4 @@ fun box(): String { if (I.O != I.O) return "Fail 1" if (I.O == I.K) return "Fail 2" return I.O.unsafeCast() + I.K.unsafeCast() -} \ No newline at end of file +} diff --git a/libraries/stdlib/js/src/org.w3c/org.w3c.dom.encryptedmedia.kt b/libraries/stdlib/js/src/org.w3c/org.w3c.dom.encryptedmedia.kt index 993211e89cb..7e86611eb95 100644 --- a/libraries/stdlib/js/src/org.w3c/org.w3c.dom.encryptedmedia.kt +++ b/libraries/stdlib/js/src/org.w3c/org.w3c.dom.encryptedmedia.kt @@ -178,6 +178,7 @@ public inline fun MediaEncryptedEventInit(initDataType: String? = "", initData: } /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface MediaKeysRequirement { companion object @@ -190,6 +191,7 @@ public inline val MediaKeysRequirement.Companion.OPTIONAL: MediaKeysRequirement public inline val MediaKeysRequirement.Companion.NOT_ALLOWED: MediaKeysRequirement get() = "not-allowed".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface MediaKeySessionType { companion object @@ -200,6 +202,7 @@ public inline val MediaKeySessionType.Companion.TEMPORARY: MediaKeySessionType g public inline val MediaKeySessionType.Companion.PERSISTENT_LICENSE: MediaKeySessionType get() = "persistent-license".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface MediaKeyStatus { companion object @@ -220,6 +223,7 @@ public inline val MediaKeyStatus.Companion.STATUS_PENDING: MediaKeyStatus get() public inline val MediaKeyStatus.Companion.INTERNAL_ERROR: MediaKeyStatus get() = "internal-error".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface MediaKeyMessageType { companion object @@ -231,4 +235,4 @@ public inline val MediaKeyMessageType.Companion.LICENSE_RENEWAL: MediaKeyMessage public inline val MediaKeyMessageType.Companion.LICENSE_RELEASE: MediaKeyMessageType get() = "license-release".asDynamic().unsafeCast() -public inline val MediaKeyMessageType.Companion.INDIVIDUALIZATION_REQUEST: MediaKeyMessageType get() = "individualization-request".asDynamic().unsafeCast() \ No newline at end of file +public inline val MediaKeyMessageType.Companion.INDIVIDUALIZATION_REQUEST: MediaKeyMessageType get() = "individualization-request".asDynamic().unsafeCast() diff --git a/libraries/stdlib/js/src/org.w3c/org.w3c.dom.kt b/libraries/stdlib/js/src/org.w3c/org.w3c.dom.kt index 91bac5b7e03..c9000908a42 100644 --- a/libraries/stdlib/js/src/org.w3c/org.w3c.dom.kt +++ b/libraries/stdlib/js/src/org.w3c/org.w3c.dom.kt @@ -6377,6 +6377,7 @@ public external interface UnionMessagePortOrWindowProxy public external interface HTMLOrSVGScriptElement /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface DocumentReadyState { companion object @@ -6389,6 +6390,7 @@ public inline val DocumentReadyState.Companion.INTERACTIVE: DocumentReadyState g public inline val DocumentReadyState.Companion.COMPLETE: DocumentReadyState get() = "complete".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface CanPlayTypeResult { companion object @@ -6401,6 +6403,7 @@ public inline val CanPlayTypeResult.Companion.MAYBE: CanPlayTypeResult get() = " public inline val CanPlayTypeResult.Companion.PROBABLY: CanPlayTypeResult get() = "probably".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface TextTrackMode { companion object @@ -6413,6 +6416,7 @@ public inline val TextTrackMode.Companion.HIDDEN: TextTrackMode get() = "hidden" public inline val TextTrackMode.Companion.SHOWING: TextTrackMode get() = "showing".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface TextTrackKind { companion object @@ -6429,6 +6433,7 @@ public inline val TextTrackKind.Companion.CHAPTERS: TextTrackKind get() = "chapt public inline val TextTrackKind.Companion.METADATA: TextTrackKind get() = "metadata".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface SelectionMode { companion object @@ -6443,6 +6448,7 @@ public inline val SelectionMode.Companion.END: SelectionMode get() = "end".asDyn public inline val SelectionMode.Companion.PRESERVE: SelectionMode get() = "preserve".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface CanvasFillRule { companion object @@ -6453,6 +6459,7 @@ public inline val CanvasFillRule.Companion.NONZERO: CanvasFillRule get() = "nonz public inline val CanvasFillRule.Companion.EVENODD: CanvasFillRule get() = "evenodd".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface ImageSmoothingQuality { companion object @@ -6465,6 +6472,7 @@ public inline val ImageSmoothingQuality.Companion.MEDIUM: ImageSmoothingQuality public inline val ImageSmoothingQuality.Companion.HIGH: ImageSmoothingQuality get() = "high".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface CanvasLineCap { companion object @@ -6477,6 +6485,7 @@ public inline val CanvasLineCap.Companion.ROUND: CanvasLineCap get() = "round".a public inline val CanvasLineCap.Companion.SQUARE: CanvasLineCap get() = "square".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface CanvasLineJoin { companion object @@ -6489,6 +6498,7 @@ public inline val CanvasLineJoin.Companion.BEVEL: CanvasLineJoin get() = "bevel" public inline val CanvasLineJoin.Companion.MITER: CanvasLineJoin get() = "miter".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface CanvasTextAlign { companion object @@ -6505,6 +6515,7 @@ public inline val CanvasTextAlign.Companion.RIGHT: CanvasTextAlign get() = "righ public inline val CanvasTextAlign.Companion.CENTER: CanvasTextAlign get() = "center".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface CanvasTextBaseline { companion object @@ -6523,6 +6534,7 @@ public inline val CanvasTextBaseline.Companion.IDEOGRAPHIC: CanvasTextBaseline g public inline val CanvasTextBaseline.Companion.BOTTOM: CanvasTextBaseline get() = "bottom".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface CanvasDirection { companion object @@ -6535,6 +6547,7 @@ public inline val CanvasDirection.Companion.RTL: CanvasDirection get() = "rtl".a public inline val CanvasDirection.Companion.INHERIT: CanvasDirection get() = "inherit".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface ScrollRestoration { companion object @@ -6545,6 +6558,7 @@ public inline val ScrollRestoration.Companion.AUTO: ScrollRestoration get() = "a public inline val ScrollRestoration.Companion.MANUAL: ScrollRestoration get() = "manual".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface ImageOrientation { companion object @@ -6555,6 +6569,7 @@ public inline val ImageOrientation.Companion.NONE: ImageOrientation get() = "non public inline val ImageOrientation.Companion.FLIPY: ImageOrientation get() = "flipY".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface PremultiplyAlpha { companion object @@ -6567,6 +6582,7 @@ public inline val PremultiplyAlpha.Companion.PREMULTIPLY: PremultiplyAlpha get() public inline val PremultiplyAlpha.Companion.DEFAULT: PremultiplyAlpha get() = "default".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface ColorSpaceConversion { companion object @@ -6577,6 +6593,7 @@ public inline val ColorSpaceConversion.Companion.NONE: ColorSpaceConversion get( public inline val ColorSpaceConversion.Companion.DEFAULT: ColorSpaceConversion get() = "default".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface ResizeQuality { companion object @@ -6591,6 +6608,7 @@ public inline val ResizeQuality.Companion.MEDIUM: ResizeQuality get() = "medium" public inline val ResizeQuality.Companion.HIGH: ResizeQuality get() = "high".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface BinaryType { companion object @@ -6601,6 +6619,7 @@ public inline val BinaryType.Companion.BLOB: BinaryType get() = "blob".asDynamic public inline val BinaryType.Companion.ARRAYBUFFER: BinaryType get() = "arraybuffer".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface WorkerType { companion object @@ -6611,6 +6630,7 @@ public inline val WorkerType.Companion.CLASSIC: WorkerType get() = "classic".asD public inline val WorkerType.Companion.MODULE: WorkerType get() = "module".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface ShadowRootMode { companion object @@ -6621,6 +6641,7 @@ public inline val ShadowRootMode.Companion.OPEN: ShadowRootMode get() = "open".a public inline val ShadowRootMode.Companion.CLOSED: ShadowRootMode get() = "closed".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface ScrollBehavior { companion object @@ -6633,6 +6654,7 @@ public inline val ScrollBehavior.Companion.INSTANT: ScrollBehavior get() = "inst public inline val ScrollBehavior.Companion.SMOOTH: ScrollBehavior get() = "smooth".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface ScrollLogicalPosition { companion object @@ -6647,6 +6669,7 @@ public inline val ScrollLogicalPosition.Companion.END: ScrollLogicalPosition get public inline val ScrollLogicalPosition.Companion.NEAREST: ScrollLogicalPosition get() = "nearest".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface CSSBoxType { companion object @@ -6658,4 +6681,4 @@ public inline val CSSBoxType.Companion.BORDER: CSSBoxType get() = "border".asDyn public inline val CSSBoxType.Companion.PADDING: CSSBoxType get() = "padding".asDynamic().unsafeCast() -public inline val CSSBoxType.Companion.CONTENT: CSSBoxType get() = "content".asDynamic().unsafeCast() \ No newline at end of file +public inline val CSSBoxType.Companion.CONTENT: CSSBoxType get() = "content".asDynamic().unsafeCast() diff --git a/libraries/stdlib/js/src/org.w3c/org.w3c.dom.mediacapture.kt b/libraries/stdlib/js/src/org.w3c/org.w3c.dom.mediacapture.kt index 84ebee5a423..efd481815ba 100644 --- a/libraries/stdlib/js/src/org.w3c/org.w3c.dom.mediacapture.kt +++ b/libraries/stdlib/js/src/org.w3c/org.w3c.dom.mediacapture.kt @@ -664,6 +664,7 @@ public inline fun Constraints(advanced: Array? = undefined): Cons } /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface MediaStreamTrackState { companion object @@ -674,6 +675,7 @@ public inline val MediaStreamTrackState.Companion.LIVE: MediaStreamTrackState ge public inline val MediaStreamTrackState.Companion.ENDED: MediaStreamTrackState get() = "ended".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface VideoFacingModeEnum { companion object @@ -688,6 +690,7 @@ public inline val VideoFacingModeEnum.Companion.LEFT: VideoFacingModeEnum get() public inline val VideoFacingModeEnum.Companion.RIGHT: VideoFacingModeEnum get() = "right".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface VideoResizeModeEnum { companion object @@ -698,6 +701,7 @@ public inline val VideoResizeModeEnum.Companion.NONE: VideoResizeModeEnum get() public inline val VideoResizeModeEnum.Companion.CROP_AND_SCALE: VideoResizeModeEnum get() = "crop-and-scale".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface MediaDeviceKind { companion object @@ -707,4 +711,4 @@ public inline val MediaDeviceKind.Companion.AUDIOINPUT: MediaDeviceKind get() = public inline val MediaDeviceKind.Companion.AUDIOOUTPUT: MediaDeviceKind get() = "audiooutput".asDynamic().unsafeCast() -public inline val MediaDeviceKind.Companion.VIDEOINPUT: MediaDeviceKind get() = "videoinput".asDynamic().unsafeCast() \ No newline at end of file +public inline val MediaDeviceKind.Companion.VIDEOINPUT: MediaDeviceKind get() = "videoinput".asDynamic().unsafeCast() diff --git a/libraries/stdlib/js/src/org.w3c/org.w3c.dom.mediasource.kt b/libraries/stdlib/js/src/org.w3c/org.w3c.dom.mediasource.kt index 7ba5aca271c..a6bdfe56615 100644 --- a/libraries/stdlib/js/src/org.w3c/org.w3c.dom.mediasource.kt +++ b/libraries/stdlib/js/src/org.w3c/org.w3c.dom.mediasource.kt @@ -77,6 +77,7 @@ public external abstract class SourceBufferList : EventTarget { public inline operator fun SourceBufferList.get(index: Int): SourceBuffer? = asDynamic()[index] /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface ReadyState { companion object @@ -89,6 +90,7 @@ public inline val ReadyState.Companion.OPEN: ReadyState get() = "open".asDynamic public inline val ReadyState.Companion.ENDED: ReadyState get() = "ended".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface EndOfStreamError { companion object @@ -99,6 +101,7 @@ public inline val EndOfStreamError.Companion.NETWORK: EndOfStreamError get() = " public inline val EndOfStreamError.Companion.DECODE: EndOfStreamError get() = "decode".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface AppendMode { companion object @@ -106,4 +109,4 @@ public external interface AppendMode { public inline val AppendMode.Companion.SEGMENTS: AppendMode get() = "segments".asDynamic().unsafeCast() -public inline val AppendMode.Companion.SEQUENCE: AppendMode get() = "sequence".asDynamic().unsafeCast() \ No newline at end of file +public inline val AppendMode.Companion.SEQUENCE: AppendMode get() = "sequence".asDynamic().unsafeCast() diff --git a/libraries/stdlib/js/src/org.w3c/org.w3c.fetch.kt b/libraries/stdlib/js/src/org.w3c/org.w3c.fetch.kt index 0b40aefca3f..00416254b3f 100644 --- a/libraries/stdlib/js/src/org.w3c/org.w3c.fetch.kt +++ b/libraries/stdlib/js/src/org.w3c/org.w3c.fetch.kt @@ -183,6 +183,7 @@ public inline fun ResponseInit(status: Short? = 200, statusText: String? = "OK", } /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface RequestType { companion object @@ -205,6 +206,7 @@ public inline val RequestType.Companion.TRACK: RequestType get() = "track".asDyn public inline val RequestType.Companion.VIDEO: RequestType get() = "video".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface RequestDestination { companion object @@ -241,6 +243,7 @@ public inline val RequestDestination.Companion.WORKER: RequestDestination get() public inline val RequestDestination.Companion.XSLT: RequestDestination get() = "xslt".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface RequestMode { companion object @@ -255,6 +258,7 @@ public inline val RequestMode.Companion.NO_CORS: RequestMode get() = "no-cors".a public inline val RequestMode.Companion.CORS: RequestMode get() = "cors".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface RequestCredentials { companion object @@ -267,6 +271,7 @@ public inline val RequestCredentials.Companion.SAME_ORIGIN: RequestCredentials g public inline val RequestCredentials.Companion.INCLUDE: RequestCredentials get() = "include".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface RequestCache { companion object @@ -285,6 +290,7 @@ public inline val RequestCache.Companion.FORCE_CACHE: RequestCache get() = "forc public inline val RequestCache.Companion.ONLY_IF_CACHED: RequestCache get() = "only-if-cached".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface RequestRedirect { companion object @@ -297,6 +303,7 @@ public inline val RequestRedirect.Companion.ERROR: RequestRedirect get() = "erro public inline val RequestRedirect.Companion.MANUAL: RequestRedirect get() = "manual".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface ResponseType { companion object @@ -312,4 +319,4 @@ public inline val ResponseType.Companion.ERROR: ResponseType get() = "error".asD public inline val ResponseType.Companion.OPAQUE: ResponseType get() = "opaque".asDynamic().unsafeCast() -public inline val ResponseType.Companion.OPAQUEREDIRECT: ResponseType get() = "opaqueredirect".asDynamic().unsafeCast() \ No newline at end of file +public inline val ResponseType.Companion.OPAQUEREDIRECT: ResponseType get() = "opaqueredirect".asDynamic().unsafeCast() diff --git a/libraries/stdlib/js/src/org.w3c/org.w3c.notifications.kt b/libraries/stdlib/js/src/org.w3c/org.w3c.notifications.kt index ccb49723692..bed95468a62 100644 --- a/libraries/stdlib/js/src/org.w3c/org.w3c.notifications.kt +++ b/libraries/stdlib/js/src/org.w3c/org.w3c.notifications.kt @@ -208,6 +208,7 @@ public inline fun NotificationEventInit(notification: Notification?, action: Str } /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface NotificationPermission { companion object @@ -220,6 +221,7 @@ public inline val NotificationPermission.Companion.DENIED: NotificationPermissio public inline val NotificationPermission.Companion.GRANTED: NotificationPermission get() = "granted".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface NotificationDirection { companion object @@ -229,4 +231,4 @@ public inline val NotificationDirection.Companion.AUTO: NotificationDirection ge public inline val NotificationDirection.Companion.LTR: NotificationDirection get() = "ltr".asDynamic().unsafeCast() -public inline val NotificationDirection.Companion.RTL: NotificationDirection get() = "rtl".asDynamic().unsafeCast() \ No newline at end of file +public inline val NotificationDirection.Companion.RTL: NotificationDirection get() = "rtl".asDynamic().unsafeCast() diff --git a/libraries/stdlib/js/src/org.w3c/org.w3c.workers.kt b/libraries/stdlib/js/src/org.w3c/org.w3c.workers.kt index 1dd2362197a..864c633562b 100644 --- a/libraries/stdlib/js/src/org.w3c/org.w3c.workers.kt +++ b/libraries/stdlib/js/src/org.w3c/org.w3c.workers.kt @@ -489,6 +489,7 @@ public external interface UnionMessagePortOrServiceWorker public external interface UnionClientOrMessagePortOrServiceWorker /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface ServiceWorkerState { companion object @@ -505,6 +506,7 @@ public inline val ServiceWorkerState.Companion.ACTIVATED: ServiceWorkerState get public inline val ServiceWorkerState.Companion.REDUNDANT: ServiceWorkerState get() = "redundant".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface FrameType { companion object @@ -519,6 +521,7 @@ public inline val FrameType.Companion.NESTED: FrameType get() = "nested".asDynam public inline val FrameType.Companion.NONE: FrameType get() = "none".asDynamic().unsafeCast() /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface ClientType { companion object @@ -530,4 +533,4 @@ public inline val ClientType.Companion.WORKER: ClientType get() = "worker".asDyn public inline val ClientType.Companion.SHAREDWORKER: ClientType get() = "sharedworker".asDynamic().unsafeCast() -public inline val ClientType.Companion.ALL: ClientType get() = "all".asDynamic().unsafeCast() \ No newline at end of file +public inline val ClientType.Companion.ALL: ClientType get() = "all".asDynamic().unsafeCast() diff --git a/libraries/stdlib/js/src/org.w3c/org.w3c.xhr.kt b/libraries/stdlib/js/src/org.w3c/org.w3c.xhr.kt index d1959610866..916f42ec8f9 100644 --- a/libraries/stdlib/js/src/org.w3c/org.w3c.xhr.kt +++ b/libraries/stdlib/js/src/org.w3c/org.w3c.xhr.kt @@ -132,6 +132,7 @@ public inline fun ProgressEventInit(lengthComputable: Boolean? = false, loaded: } /* please, don't implement this interface! */ +@JsName("null") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") public external interface XMLHttpRequestResponseType { companion object @@ -147,4 +148,4 @@ public inline val XMLHttpRequestResponseType.Companion.DOCUMENT: XMLHttpRequestR public inline val XMLHttpRequestResponseType.Companion.JSON: XMLHttpRequestResponseType get() = "json".asDynamic().unsafeCast() -public inline val XMLHttpRequestResponseType.Companion.TEXT: XMLHttpRequestResponseType get() = "text".asDynamic().unsafeCast() \ No newline at end of file +public inline val XMLHttpRequestResponseType.Companion.TEXT: XMLHttpRequestResponseType get() = "text".asDynamic().unsafeCast()