Skip to content

Commit 946c225

Browse files
committed
JS. Use JsAnyMarker (#2449)
1 parent af49933 commit 946c225

22 files changed

+44
-113
lines changed

kotlin-js/src/commonMain/generated/js/atomic/WaitStatus.kt

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
// Automatically generated - do not modify!
22

33
@file:Suppress(
4-
"INTERFACE_WITH_SUPERCLASS",
54
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
65
)
76

87
package js.atomic
98

10-
import js.core.JsAny
9+
import js.core.JsAnyMarker
1110
import seskar.js.JsValue
1211

1312
sealed external interface WaitStatus :
14-
JsAny {
13+
JsAnyMarker {
1514

1615
companion object {
1716

kotlin-js/src/commonMain/generated/js/intl/DateTimeFormatOptions.kt

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
// Automatically generated - do not modify!
22

3-
@file:Suppress(
4-
"INTERFACE_WITH_SUPERCLASS",
5-
)
6-
73
package js.intl
84

9-
import js.core.JsAny
5+
import js.core.JsAnyMarker
106
import js.objects.JsPlainObject
117

128
@JsPlainObject
139
external interface DateTimeFormatOptions :
14-
JsAny {
10+
JsAnyMarker {
1511
val localeMatcher: LocaleMatcher?
1612
val weekday: WeekdayFormat?
1713
val era: EraFormat?
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
// Automatically generated - do not modify!
22

3-
@file:Suppress(
4-
"INTERFACE_WITH_SUPERCLASS",
5-
)
6-
73
package js.intl
84

9-
import js.core.JsAny
5+
import js.core.JsAnyMarker
106

117
sealed external interface DateTimeFormatPart :
12-
JsAny {
8+
JsAnyMarker {
139
var type: String /* DateTimeFormatPartTypes */
1410
var value: String
1511
}

kotlin-js/src/commonMain/generated/js/intl/LDMLPluralRule.kt

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
// Automatically generated - do not modify!
22

33
@file:Suppress(
4-
"INTERFACE_WITH_SUPERCLASS",
54
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
65
)
76

87
package js.intl
98

10-
import js.core.JsAny
9+
import js.core.JsAnyMarker
1110
import seskar.js.JsValue
1211

1312
sealed external interface LDMLPluralRule :
14-
JsAny {
13+
JsAnyMarker {
1514

1615
companion object {
1716
@JsValue("zero")

kotlin-js/src/commonMain/generated/js/intl/LocaleOptions.kt

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
// Automatically generated - do not modify!
22

3-
@file:Suppress(
4-
"INTERFACE_WITH_SUPERCLASS",
5-
)
6-
73
package js.intl
84

9-
import js.core.JsAny
5+
import js.core.JsAnyMarker
106
import kotlin.js.definedExternally
117

128
sealed external interface LocaleOptions :
13-
JsAny {
9+
JsAnyMarker {
1410
/**
1511
* A string containing the language, and the script and region if available.
1612
*/

kotlin-js/src/commonMain/generated/js/intl/Localizable.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// Automatically generated - do not modify!
22

33
@file:Suppress(
4-
"INTERFACE_WITH_SUPERCLASS",
54
"NON_ABSTRACT_MEMBER_OF_EXTERNAL_INTERFACE",
65
)
76

87
package js.intl
98

109
import js.array.ReadonlyArray
1110
import js.core.JsAny
11+
import js.core.JsAnyMarker
1212
import kotlin.js.definedExternally
1313

1414
external interface Localizable<in O : JsAny> :
15-
JsAny {
15+
JsAnyMarker {
1616
/**
1717
* Returns a value as a string value appropriate to the host environment's current locale.
1818
*
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
// Automatically generated - do not modify!
22

3-
@file:Suppress(
4-
"INTERFACE_WITH_SUPERCLASS",
5-
)
6-
73
package js.intl
84

9-
import js.core.JsAny
5+
import js.core.JsAnyMarker
106

117
sealed external interface NumberFormatPart :
12-
JsAny {
8+
JsAnyMarker {
139
var type: NumberFormatPartType
1410
var value: String
1511
}

kotlin-js/src/commonMain/kotlin/js/array/JsTuple.kt

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
@file:Suppress(
2-
"INTERFACE_WITH_SUPERCLASS",
3-
)
4-
51
package js.array
62

73
import js.core.JsAny
4+
import js.core.JsAnyMarker
85
import seskar.js.JsAlias
96
import seskar.js.JsAlias.Companion.THIS
107
import kotlin.js.JsName
118

129
sealed external interface JsTuple :
13-
JsAny {
10+
JsAnyMarker {
1411
@JsName("length")
1512
val size: Int
1613

Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
@file:Suppress(
2-
"INTERFACE_WITH_SUPERCLASS",
3-
)
4-
51
package js.iterable
62

73
import js.core.JsAny
4+
import js.core.JsAnyMarker
85

96
sealed external interface IteratorResult<out T : JsAny?, out TReturn : JsAny?> :
10-
JsAny
7+
JsAnyMarker

kotlin-js/src/commonMain/kotlin/js/objects/TypedPropertyDescriptor.kt

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
@file:Suppress(
2-
"INTERFACE_WITH_SUPERCLASS",
3-
)
4-
51
package js.objects
62

73
import js.core.JsAny
4+
import js.core.JsAnyMarker
85

96
@JsPlainObject
107
external interface TypedPropertyDescriptor<T : JsAny?> :
11-
JsAny {
8+
JsAnyMarker {
129
val configurable: Boolean?
1310
val enumerable: Boolean?
1411
val value: T?

kotlin-js/src/commonMain/kotlin/js/promise/PromiseResult.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
@file:Suppress(
2-
"INTERFACE_WITH_SUPERCLASS",
32
"WRONG_EXTERNAL_DECLARATION",
43

54
"WRONG_BODY_OF_EXTERNAL_DECLARATION",
@@ -11,11 +10,12 @@
1110
package js.promise
1211

1312
import js.core.JsAny
13+
import js.core.JsAnyMarker
1414
import js.promise.internal.awaitPromiseResult
1515

1616
// T | PromiseLike<T>
1717
sealed external interface PromiseResult<out T : JsAny?> :
18-
JsAny {
18+
JsAnyMarker {
1919

2020
suspend inline fun await(): T =
2121
awaitPromiseResult(this)

kotlin-js/src/commonMain/kotlin/js/promise/PromiseSettledResult.kt

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
@file:Suppress(
2-
"INTERFACE_WITH_SUPERCLASS",
3-
)
4-
51
package js.promise
62

73
import js.core.JsAny
4+
import js.core.JsAnyMarker
85
import js.errors.toThrowable
96

107
sealed external interface PromiseSettledResult<T : JsAny?> :
11-
JsAny
8+
JsAnyMarker
129

1310
fun <T : JsAny?> PromiseSettledResult<T>.toResult(): Result<T> =
1411
when (this) {

kotlin-js/src/commonMain/kotlin/js/temporal/ArithmeticOptions.kt

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
1-
@file:Suppress(
2-
"INTERFACE_WITH_SUPERCLASS",
3-
)
4-
51
package js.temporal
62

7-
import js.core.JsAny
3+
import js.core.JsAnyMarker
84
import js.objects.JsPlainObject
95

106
/**
117
* Options for arithmetic operations like `add()` and `subtract()`
128
*/
139
@JsPlainObject
1410
external interface ArithmeticOptions :
15-
JsAny {
11+
JsAnyMarker {
1612

1713
/**
1814
* Controls handling of out-of-range arithmetic results.

kotlin-js/src/commonMain/kotlin/js/temporal/AssignmentOptions.kt

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
@file:Suppress(
2-
"INTERFACE_WITH_SUPERCLASS",
3-
)
4-
51
package js.temporal
62

7-
import js.core.JsAny
3+
import js.core.JsAnyMarker
84
import js.objects.JsPlainObject
95

106
/**
@@ -13,7 +9,7 @@ import js.objects.JsPlainObject
139
*/
1410
@JsPlainObject
1511
external interface AssignmentOptions :
16-
JsAny {
12+
JsAnyMarker {
1713
/**
1814
* How to deal with out-of-range values
1915
*

kotlin-js/src/commonMain/kotlin/js/temporal/DurationArithmeticOptions.kt

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
@file:Suppress(
2-
"INTERFACE_WITH_SUPERCLASS",
3-
)
4-
51
package js.temporal
62

73
import js.core.JsAny
4+
import js.core.JsAnyMarker
85
import js.objects.JsPlainObject
96

107
/**
@@ -13,7 +10,7 @@ import js.objects.JsPlainObject
1310
*/
1411
@JsPlainObject
1512
external interface DurationArithmeticOptions :
16-
JsAny {
13+
JsAnyMarker {
1714
/**
1815
* The starting point to use when variable-length units (years, months,
1916
* weeks depending on the calendar) are involved. This option is required if

kotlin-js/src/commonMain/kotlin/js/temporal/DurationLike.kt

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
@file:Suppress(
2-
"INTERFACE_WITH_SUPERCLASS",
3-
)
4-
51
package js.temporal
62

7-
import js.core.JsAny
3+
import js.core.JsAnyMarker
84
import js.objects.JsPlainObject
95

106
@JsPlainObject
117
external interface DurationLike :
12-
JsAny {
8+
JsAnyMarker {
139

1410
val years: Int?
1511
val months: Int?

kotlin-js/src/commonMain/kotlin/js/temporal/PlainDateLike.kt

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
@file:Suppress(
2-
"INTERFACE_WITH_SUPERCLASS",
3-
)
4-
51
package js.temporal
62

7-
import js.core.JsAny
3+
import js.core.JsAnyMarker
84
import js.objects.JsPlainObject
95

106
@JsPlainObject
117
external interface PlainDateLike :
12-
JsAny {
8+
JsAnyMarker {
139

1410
val era: String?
1511
val eraYear: Int?

kotlin-js/src/commonMain/kotlin/js/temporal/PlainDateTimeLike.kt

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
@file:Suppress(
2-
"INTERFACE_WITH_SUPERCLASS",
3-
)
4-
51
package js.temporal
62

7-
import js.core.JsAny
3+
import js.core.JsAnyMarker
84
import js.objects.JsPlainObject
95

106
@JsPlainObject
117
external interface PlainDateTimeLike :
12-
JsAny {
8+
JsAnyMarker {
139

1410
val era: String?
1511
val eraYear: Int?

kotlin-js/src/commonMain/kotlin/js/temporal/PlainMonthDayLike.kt

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
@file:Suppress(
2-
"INTERFACE_WITH_SUPERCLASS",
3-
)
4-
51
package js.temporal
62

7-
import js.core.JsAny
3+
import js.core.JsAnyMarker
84
import js.objects.JsPlainObject
95

106
@JsPlainObject
117
external interface PlainMonthDayLike :
12-
JsAny {
8+
JsAnyMarker {
139

1410
val era: String?
1511
val eraYear: Int?

kotlin-js/src/commonMain/kotlin/js/temporal/PlainTimeLike.kt

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
@file:Suppress(
2-
"INTERFACE_WITH_SUPERCLASS",
3-
)
4-
51
package js.temporal
62

7-
import js.core.JsAny
3+
import js.core.JsAnyMarker
84
import js.objects.JsPlainObject
95

106
@JsPlainObject
117
external interface PlainTimeLike :
12-
JsAny {
8+
JsAnyMarker {
139

1410
var hour: Int?
1511
var minute: Int?

kotlin-js/src/commonMain/kotlin/js/temporal/PlainYearMonthLike.kt

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
@file:Suppress(
2-
"INTERFACE_WITH_SUPERCLASS",
3-
)
4-
51
package js.temporal
62

7-
import js.core.JsAny
3+
import js.core.JsAnyMarker
84
import js.objects.JsPlainObject
95

106
@JsPlainObject
117
external interface PlainYearMonthLike :
12-
JsAny {
8+
JsAnyMarker {
139

1410
val era: String?
1511
val eraYear: Int?

0 commit comments

Comments
 (0)