File tree Expand file tree Collapse file tree 3 files changed +19
-11
lines changed
firebase-common/src/jsMain/kotlin/dev/gitlive/firebase Expand file tree Collapse file tree 3 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 4
4
5
5
package dev.gitlive.firebase
6
6
7
- import dev.gitlive.firebase.externals.database.DataSnapshot
8
- import dev.gitlive.firebase.externals.functions.HttpsCallable
9
- import dev.gitlive.firebase.externals.functions.HttpsCallableResult
10
- import kotlin.js.Promise
11
-
12
- typealias ChangeSnapshotCallback = (data: DataSnapshot , previousChildName: String? ) -> Unit
13
- typealias ValueSnapshotCallback = (data: DataSnapshot ) -> Unit
14
- typealias CancelCallback = (error: Throwable ) -> Unit
15
7
typealias Unsubscribe = () -> Unit
16
-
17
- operator fun HttpsCallable.invoke () = asDynamic()() as Promise <HttpsCallableResult >
18
- operator fun HttpsCallable.invoke (data : Any? ) = asDynamic()(data) as Promise <HttpsCallableResult >
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2020 GitLive Ltd. Use of this source code is governed by the Apache 2.0 license.
3
+ */
4
+
5
+ package dev.gitlive.firebase.externals.database
6
+
7
+ typealias ChangeSnapshotCallback = (data: DataSnapshot , previousChildName: String? ) -> Unit
8
+ typealias ValueSnapshotCallback = (data: DataSnapshot ) -> Unit
9
+ typealias CancelCallback = (error: Throwable ) -> Unit
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2020 GitLive Ltd. Use of this source code is governed by the Apache 2.0 license.
3
+ */
4
+
5
+ package dev.gitlive.firebase.externals.functions
6
+
7
+ import kotlin.js.Promise
8
+
9
+ operator fun HttpsCallable.invoke () = asDynamic()() as Promise <HttpsCallableResult >
10
+ operator fun HttpsCallable.invoke (data : Any? ) = asDynamic()(data) as Promise <HttpsCallableResult >
You can’t perform that action at this time.
0 commit comments