Skip to content

Commit

Permalink
Update declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
turansky committed Jul 6, 2023
1 parent 8fa1b2e commit a4be023
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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<JsTuple2<Int, CSSTransformComponent>>
override fun keys(): JsIterable.Iterator<Int>
override fun values(): JsIterable.Iterator<CSSTransformComponent>
override fun entries(): IterableIterator<JsTuple2<Int, CSSTransformComponent>>
override fun keys(): IterableIterator<Int>
override fun values(): IterableIterator<CSSTransformComponent>
override fun forEach(action: (item: CSSTransformComponent) -> Unit)
}
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -15,8 +15,8 @@ external class CSSUnparsedValue(
override val length: Int


override fun entries(): JsIterable.Iterator<JsTuple2<Int, CSSUnparsedSegment>>
override fun keys(): JsIterable.Iterator<Int>
override fun values(): JsIterable.Iterator<CSSUnparsedSegment>
override fun entries(): IterableIterator<JsTuple2<Int, CSSUnparsedSegment>>
override fun keys(): IterableIterator<Int>
override fun values(): IterableIterator<CSSUnparsedSegment>
override fun forEach(action: (item: CSSUnparsedSegment) -> Unit)
}
8 changes: 4 additions & 4 deletions browser-kotlin/src/jsMain/kotlin/web/http/FormData.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -64,8 +64,8 @@ external class FormData(
filename: String = definedExternally,
)

override fun entries(): JsIterable.Iterator<JsTuple2<String, FormDataEntryValue>>
override fun keys(): JsIterable.Iterator<String>
override fun values(): JsIterable.Iterator<FormDataEntryValue>
override fun entries(): IterableIterator<JsTuple2<String, FormDataEntryValue>>
override fun keys(): IterableIterator<String>
override fun values(): IterableIterator<FormDataEntryValue>
override fun forEach(action: (value: FormDataEntryValue, key: String) -> Unit)
}
8 changes: 4 additions & 4 deletions browser-kotlin/src/jsMain/kotlin/web/http/Headers.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -39,8 +39,8 @@ external class Headers(
value: String,
)

override fun entries(): JsIterable.Iterator<JsTuple2<String, String>>
override fun keys(): JsIterable.Iterator<String>
override fun values(): JsIterable.Iterator<String>
override fun entries(): IterableIterator<JsTuple2<String, String>>
override fun keys(): IterableIterator<String>
override fun values(): IterableIterator<String>
override fun forEach(action: (value: String, key: String) -> Unit)
}
8 changes: 4 additions & 4 deletions browser-kotlin/src/jsMain/kotlin/web/url/URLSearchParams.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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<JsTuple2<String, String>>
override fun keys(): JsIterable.Iterator<String>
override fun values(): JsIterable.Iterator<String>
override fun entries(): IterableIterator<JsTuple2<String, String>>
override fun keys(): IterableIterator<String>
override fun values(): IterableIterator<String>
override fun forEach(action: (value: String, key: String) -> Unit)
}
8 changes: 4 additions & 4 deletions node-kotlin/src/jsMain/kotlin/node/buffer/Buffer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1886,7 +1886,7 @@ external class Buffer : Uint8Array {
* ```
* @since v1.1.0
*/
override fun entries(): JsIterable.Iterator<JsTuple2<Int, Byte>>
override fun entries(): IterableIterator<JsTuple2<Int, Byte>>

/**
* Equivalent to `buf.indexOf() !== -1`.
Expand Down Expand Up @@ -1944,7 +1944,7 @@ external class Buffer : Uint8Array {
* ```
* @since v1.1.0
*/
override fun keys(): JsIterable.Iterator<Int>
override fun keys(): IterableIterator<Int>

/**
* Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) for `buf` values (bytes). This function is
Expand Down Expand Up @@ -1979,7 +1979,7 @@ external class Buffer : Uint8Array {
* ```
* @since v1.1.0
*/
override fun values(): JsIterable.Iterator<Byte>
override fun values(): IterableIterator<Byte>

companion object {
/**
Expand Down
4 changes: 2 additions & 2 deletions node-kotlin/src/jsMain/kotlin/node/events/EventEmitter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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`.
Expand Down

0 comments on commit a4be023

Please sign in to comment.