From a4be023e0c8f1e058d02e10be6491a95ad440b41 Mon Sep 17 00:00:00 2001 From: Victor Turansky Date: Thu, 6 Jul 2023 11:19:02 +0300 Subject: [PATCH] Update declarations --- .../src/jsMain/kotlin/web/cssom/CSSTransformValue.kt | 8 ++++---- .../src/jsMain/kotlin/web/cssom/CSSUnparsedValue.kt | 8 ++++---- browser-kotlin/src/jsMain/kotlin/web/http/FormData.kt | 8 ++++---- browser-kotlin/src/jsMain/kotlin/web/http/Headers.kt | 8 ++++---- .../src/jsMain/kotlin/web/url/URLSearchParams.kt | 8 ++++---- node-kotlin/src/jsMain/kotlin/node/buffer/Buffer.kt | 8 ++++---- node-kotlin/src/jsMain/kotlin/node/events/EventEmitter.kt | 4 ++-- 7 files changed, 26 insertions(+), 26 deletions(-) diff --git a/browser-kotlin/src/jsMain/kotlin/web/cssom/CSSTransformValue.kt b/browser-kotlin/src/jsMain/kotlin/web/cssom/CSSTransformValue.kt index 994a241f3..d9c26098d 100644 --- a/browser-kotlin/src/jsMain/kotlin/web/cssom/CSSTransformValue.kt +++ b/browser-kotlin/src/jsMain/kotlin/web/cssom/CSSTransformValue.kt @@ -3,7 +3,7 @@ package web.cssom import js.collections.ListLike -import js.core.JsIterable +import js.core.IterableIterator import js.core.JsTuple2 import js.core.ReadonlyArray import web.geometry.DOMMatrix @@ -21,8 +21,8 @@ external class CSSTransformValue( /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix) */ fun toMatrix(): DOMMatrix - override fun entries(): JsIterable.Iterator> - override fun keys(): JsIterable.Iterator - override fun values(): JsIterable.Iterator + override fun entries(): IterableIterator> + override fun keys(): IterableIterator + override fun values(): IterableIterator override fun forEach(action: (item: CSSTransformComponent) -> Unit) } diff --git a/browser-kotlin/src/jsMain/kotlin/web/cssom/CSSUnparsedValue.kt b/browser-kotlin/src/jsMain/kotlin/web/cssom/CSSUnparsedValue.kt index c364e76ca..2fa4d9f7a 100644 --- a/browser-kotlin/src/jsMain/kotlin/web/cssom/CSSUnparsedValue.kt +++ b/browser-kotlin/src/jsMain/kotlin/web/cssom/CSSUnparsedValue.kt @@ -3,7 +3,7 @@ package web.cssom import js.collections.ListLike -import js.core.JsIterable +import js.core.IterableIterator import js.core.JsTuple2 import js.core.ReadonlyArray @@ -15,8 +15,8 @@ external class CSSUnparsedValue( override val length: Int - override fun entries(): JsIterable.Iterator> - override fun keys(): JsIterable.Iterator - override fun values(): JsIterable.Iterator + override fun entries(): IterableIterator> + override fun keys(): IterableIterator + override fun values(): IterableIterator override fun forEach(action: (item: CSSUnparsedSegment) -> Unit) } diff --git a/browser-kotlin/src/jsMain/kotlin/web/http/FormData.kt b/browser-kotlin/src/jsMain/kotlin/web/http/FormData.kt index 0c5f1e642..8d590861d 100644 --- a/browser-kotlin/src/jsMain/kotlin/web/http/FormData.kt +++ b/browser-kotlin/src/jsMain/kotlin/web/http/FormData.kt @@ -3,7 +3,7 @@ package web.http import js.collections.MapLike -import js.core.JsIterable +import js.core.IterableIterator import js.core.JsTuple2 import js.core.ReadonlyArray import web.buffer.Blob @@ -64,8 +64,8 @@ external class FormData( filename: String = definedExternally, ) - override fun entries(): JsIterable.Iterator> - override fun keys(): JsIterable.Iterator - override fun values(): JsIterable.Iterator + override fun entries(): IterableIterator> + override fun keys(): IterableIterator + override fun values(): IterableIterator override fun forEach(action: (value: FormDataEntryValue, key: String) -> Unit) } diff --git a/browser-kotlin/src/jsMain/kotlin/web/http/Headers.kt b/browser-kotlin/src/jsMain/kotlin/web/http/Headers.kt index 44b0309a7..2b4af0935 100644 --- a/browser-kotlin/src/jsMain/kotlin/web/http/Headers.kt +++ b/browser-kotlin/src/jsMain/kotlin/web/http/Headers.kt @@ -3,7 +3,7 @@ package web.http import js.collections.MapLike -import js.core.JsIterable +import js.core.IterableIterator import js.core.JsTuple2 import js.core.ReadonlyArray @@ -39,8 +39,8 @@ external class Headers( value: String, ) - override fun entries(): JsIterable.Iterator> - override fun keys(): JsIterable.Iterator - override fun values(): JsIterable.Iterator + override fun entries(): IterableIterator> + override fun keys(): IterableIterator + override fun values(): IterableIterator override fun forEach(action: (value: String, key: String) -> Unit) } diff --git a/browser-kotlin/src/jsMain/kotlin/web/url/URLSearchParams.kt b/browser-kotlin/src/jsMain/kotlin/web/url/URLSearchParams.kt index c78fc8d35..a75917e8d 100644 --- a/browser-kotlin/src/jsMain/kotlin/web/url/URLSearchParams.kt +++ b/browser-kotlin/src/jsMain/kotlin/web/url/URLSearchParams.kt @@ -3,7 +3,7 @@ package web.url import js.collections.MapLike -import js.core.JsIterable +import js.core.IterableIterator import js.core.JsTuple2 import js.core.ReadonlyArray import js.core.ReadonlyRecord @@ -76,8 +76,8 @@ external class URLSearchParams( /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort) */ fun sort() - override fun entries(): JsIterable.Iterator> - override fun keys(): JsIterable.Iterator - override fun values(): JsIterable.Iterator + override fun entries(): IterableIterator> + override fun keys(): IterableIterator + override fun values(): IterableIterator override fun forEach(action: (value: String, key: String) -> Unit) } diff --git a/node-kotlin/src/jsMain/kotlin/node/buffer/Buffer.kt b/node-kotlin/src/jsMain/kotlin/node/buffer/Buffer.kt index 077e5855e..89518417e 100644 --- a/node-kotlin/src/jsMain/kotlin/node/buffer/Buffer.kt +++ b/node-kotlin/src/jsMain/kotlin/node/buffer/Buffer.kt @@ -5,7 +5,7 @@ package node.buffer import js.core.BigInt -import js.core.JsIterable +import js.core.IterableIterator import js.core.JsTuple2 import js.core.ReadonlyArray import js.typedarrays.TypedArray @@ -1886,7 +1886,7 @@ external class Buffer : Uint8Array { * ``` * @since v1.1.0 */ - override fun entries(): JsIterable.Iterator> + override fun entries(): IterableIterator> /** * Equivalent to `buf.indexOf() !== -1`. @@ -1944,7 +1944,7 @@ external class Buffer : Uint8Array { * ``` * @since v1.1.0 */ - override fun keys(): JsIterable.Iterator + override fun keys(): IterableIterator /** * Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) for `buf` values (bytes). This function is @@ -1979,7 +1979,7 @@ external class Buffer : Uint8Array { * ``` * @since v1.1.0 */ - override fun values(): JsIterable.Iterator + override fun values(): IterableIterator companion object { /** diff --git a/node-kotlin/src/jsMain/kotlin/node/events/EventEmitter.kt b/node-kotlin/src/jsMain/kotlin/node/events/EventEmitter.kt index 49a712eb4..9eaf1df58 100644 --- a/node-kotlin/src/jsMain/kotlin/node/events/EventEmitter.kt +++ b/node-kotlin/src/jsMain/kotlin/node/events/EventEmitter.kt @@ -4,7 +4,7 @@ package node.events -import js.core.AsyncIterable +import js.core.AsyncIterableIterator import js.core.ReadonlyArray import js.core.Symbol import js.promise.Promise @@ -226,7 +226,7 @@ open external class EventEmitter : IEventEmitter { emitter: IEventEmitter, event: EventType, options: StaticEventEmitterOptions = definedExternally, - ): AsyncIterable.Iterator<*> + ): AsyncIterableIterator<*> /** * A class method that returns the number of listeners for the given `eventName`registered on the given `emitter`.