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 {
9292 object functions {
9393 class Functions {
9494 fun httpsCallable (name : String , options : Json ? ): HttpsCallable
95+ fun useFunctionsEmulator (origin : String )
9596 }
9697 interface HttpsCallableResult {
9798 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
2626 actual fun httpsCallable (name : String , timeout : Long? ) =
2727 rethrow { HttpsCallableReference (js.httpsCallable(name, timeout?.let { json(" timeout" to timeout.toDouble()) })) }
2828
29- actual fun useFunctionsEmulator (origin : String ): Unit = throw NotImplementedError ( )
29+ actual fun useFunctionsEmulator (origin : String ) = js.useFunctionsEmulator(origin )
3030}
3131
3232@Suppress(" UNCHECKED_CAST" )
You can’t perform that action at this time.
0 commit comments