File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
firebase-common/src/jsMain/kotlin/dev/gitlive/firebase
firebase-firestore/src/jsMain/kotlin/dev/gitlive/firebase/firestore Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ external object firebase {
182
182
fun clearPersistence (): Promise <Unit >
183
183
}
184
184
185
- open class FieldPath constructor(fieldNames : Array < out String > )
185
+ open class FieldPath constructor(vararg fieldNames : String )
186
186
187
187
open class Query {
188
188
fun get (options : Any? = definedExternally): Promise <QuerySnapshot >
Original file line number Diff line number Diff line change @@ -342,8 +342,9 @@ actual class DocumentSnapshot(val js: firebase.firestore.DocumentSnapshot) {
342
342
343
343
actual typealias FieldPath = Any
344
344
345
- actual fun FieldPath (vararg fieldNames : String ): FieldPath = rethrow { firebase.firestore.FieldPath (fieldNames) }
346
-
345
+ actual fun FieldPath (vararg fieldNames : String ): FieldPath = rethrow {
346
+ js(" Reflect" ).construct(firebase.firestore.asDynamic().FieldPath , fieldNames).unsafeCast<FieldPath >()
347
+ }
347
348
348
349
actual object FieldValue {
349
350
actual fun delete (): Any = rethrow { firebase.firestore.FieldValue .delete() }
You can’t perform that action at this time.
0 commit comments