Skip to content

Commit 0929f73

Browse files
committed
fix https callable in js
1 parent 1ec03dd commit 0929f73

File tree

1 file changed

+4
-1
lines changed
  • firebase-common/src/jsMain/kotlin/dev/teamhub/firebase

1 file changed

+4
-1
lines changed

firebase-common/src/jsMain/kotlin/dev/teamhub/firebase/externals.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ external object firebase {
9090
val data: Any?
9191
}
9292
interface HttpsCallable {
93-
operator fun invoke(data: Any? = definedExternally): Promise<HttpsCallableResult>
9493
}
9594

9695
}
@@ -228,3 +227,7 @@ external object firebase {
228227
}
229228
}
230229
}
230+
231+
operator fun firebase.functions.HttpsCallable.invoke() = asDynamic()() as Promise<firebase.functions.HttpsCallableResult>
232+
operator fun firebase.functions.HttpsCallable.invoke(data: Any?) = asDynamic()(data) as Promise<firebase.functions.HttpsCallableResult>
233+

0 commit comments

Comments
 (0)