File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -5988,7 +5988,8 @@ declare namespace firebase.firestore {
5988
5988
/**
5989
5989
* Attempts to enable persistent storage, if possible.
5990
5990
*
5991
- * Must be called before any other methods (other than settings()).
5991
+ * Must be called before any other methods (other than settings() and
5992
+ * clearPersistence()).
5992
5993
*
5993
5994
* If this fails, enablePersistence() will reject the promise it returns.
5994
5995
* Note that even after this failure, the firestore instance will remain
@@ -6061,7 +6062,13 @@ declare namespace firebase.firestore {
6061
6062
app : firebase . app . App ;
6062
6063
6063
6064
/**
6064
- * Clears the persistence cache. This can only be called when the client is not running.
6065
+ * Clears the persistent storage.
6066
+ *
6067
+ * Must be called after the app is shutdown or before other methods (other
6068
+ * than settings()) on startup. If the client is still running, an exception
6069
+ * `code` will be thrown.
6070
+ *
6071
+ * * failed-precondition: The app is still running in a browser tab.
6065
6072
*
6066
6073
* @return A promise that is resolved once the persistence has been cleared.
6067
6074
*/
Original file line number Diff line number Diff line change @@ -221,7 +221,8 @@ export class FirebaseFirestore {
221
221
* Clears the persistent storage.
222
222
*
223
223
* Must be called after the app is shutdown or before other methods (other
224
- * than settings()). If the client is still running, an exception `code` will be thrown.
224
+ * than settings()) on startup. If the client is still running, an exception
225
+ * `code` will be thrown.
225
226
*
226
227
* * failed-precondition: The app is still running in a browser tab.
227
228
*
You can’t perform that action at this time.
0 commit comments