Skip to content

Commit a39a7c1

Browse files
BoDAnka
authored andcommitted
Suppress opt-in usage warnings in wasmJs files
1 parent 214df92 commit a39a7c1

File tree

7 files changed

+375
-2
lines changed

7 files changed

+375
-2
lines changed

kotlin-js-store/wasm/package-lock.json

Lines changed: 362 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libraries/apollo-mpp-utils/src/wasmJsMain/kotlin/com/apollographql/apollo/mpp/utils.wasmJs.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.apollographql.apollo.mpp
22

3-
private fun currentTimeMillis2(): Double = js("(new Date()).getTime()")
3+
@Suppress("OPT_IN_USAGE")
4+
private fun currentTimeMillis2(): Double = js("(new Date()).getTime()")
45
actual fun currentTimeMillis(): Long {
56
return currentTimeMillis2().toLong()
67
}

libraries/apollo-runtime/src/wasmJsMain/kotlin/com/apollographql/apollo/network/http/DefaultHttpEngine.wasmJs.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@file:Suppress("OPT_IN_USAGE")
2+
13
package com.apollographql.apollo.network.http
24

35
import com.apollographql.apollo.api.http.HttpHeader

libraries/apollo-runtime/src/wasmJsMain/kotlin/com/apollographql/apollo/network/http/JsUtils.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright 2014-2023 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
44
*/
55

6+
@file:Suppress("OPT_IN_USAGE")
7+
68
package com.apollographql.apollo.network.http
79

810
import org.khronos.webgl.Uint8Array

libraries/apollo-runtime/src/wasmJsMain/kotlin/com/apollographql/apollo/network/http/LibDom.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright 2014-2023 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
44
*/
55

6+
@file:Suppress("OPT_IN_USAGE")
7+
68
package com.apollographql.apollo.network.http
79

810
import kotlin.js.Promise

0 commit comments

Comments
 (0)