File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -6064,14 +6064,14 @@ declare namespace firebase.firestore {
6064
6064
/**
6065
6065
* Clears the persistent storage.
6066
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 client is still running in a browser tab .
6067
+ * Must be called while the client is not started (after the app is shutdown
6068
+ * or when the app is first initialized). On startup, this method must called
6069
+ * before other methods (other than settings()). If the client is still
6070
+ * running, an exception with the a code of `failed-precondition` will be
6071
+ * thrown .
6072
6072
*
6073
6073
* @return A promise that is resolved once the persistent storage has been
6074
- * cleared.
6074
+ * cleared. Otherwise, the promise is rejected with an error.
6075
6075
*/
6076
6076
clearPersistence ( ) : Promise < void > ;
6077
6077
Original file line number Diff line number Diff line change @@ -220,14 +220,14 @@ export class FirebaseFirestore {
220
220
/**
221
221
* Clears the persistent storage.
222
222
*
223
- * Must be called after the app is shutdown or before other methods (other
224
- * than settings()) on startup. If the client is still running, an exception
225
- * `code` will be thrown.
226
- *
227
- * * failed-precondition: The client is still running in a browser tab .
223
+ * Must be called while the client is not started (after the app is shutdown
224
+ * or when the app is first initialized). On startup, this method must called
225
+ * before other methods (other than settings()). If the client is still
226
+ * running, an exception with the a code of `failed-precondition` will be
227
+ * thrown .
228
228
*
229
229
* @return A promise that is resolved once the persistent storage has been
230
- * cleared.
230
+ * cleared. Otherwise, the promise rejects with an error.
231
231
*/
232
232
clearPersistence ( ) : Promise < void > ;
233
233
You can’t perform that action at this time.
0 commit comments