File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
firebase-common/src/jsMain/kotlin/dev/gitlive/firebase
firebase-functions/src/jsMain/kotlin/dev/gitlive/firebase/functions Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ external object firebase {
92
92
object functions {
93
93
class Functions {
94
94
fun httpsCallable (name : String , options : Json ? ): HttpsCallable
95
+ fun useFunctionsEmulator (origin : String )
95
96
}
96
97
interface HttpsCallableResult {
97
98
val data: Any?
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ actual class FirebaseFunctions internal constructor(val js: firebase.functions.F
26
26
actual fun httpsCallable (name : String , timeout : Long? ) =
27
27
rethrow { HttpsCallableReference (js.httpsCallable(name, timeout?.let { json(" timeout" to timeout.toDouble()) })) }
28
28
29
- actual fun useFunctionsEmulator (origin : String ): Unit = throw NotImplementedError ( )
29
+ actual fun useFunctionsEmulator (origin : String ) = js.useFunctionsEmulator(origin )
30
30
}
31
31
32
32
@Suppress(" UNCHECKED_CAST" )
You can’t perform that action at this time.
0 commit comments