File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
firebase-firestore/src/jsMain/kotlin/dev/gitlive/firebase/firestore/externals Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ external fun getDocs(query: Query): Promise<QuerySnapshot>
7373
7474external fun getFirestore (app : FirebaseApp ? = definedExternally): Firestore
7575
76+ external fun initializeFirestore (app : FirebaseApp ? = definedExternally, settings : dynamic = definedExternally, databaseId : String? = definedExternally): Firestore
77+
7678external fun increment (n : Int ): FieldValue
7779
7880external fun initializeFirestore (app : FirebaseApp , settings : Any ): Firestore
@@ -287,3 +289,10 @@ external class Timestamp(seconds: Double, nanoseconds: Double) {
287289
288290 fun isEqual (other : Timestamp ): Boolean
289291}
292+
293+ external interface FirestoreLocalCache {
294+ val kind: String
295+ }
296+
297+ external fun memoryLocalCache (): FirestoreLocalCache
298+ external fun persistentLocalCache (settings : dynamic = definedExternally): FirestoreLocalCache
You can’t perform that action at this time.
0 commit comments