Skip to content

Commit f24f33f

Browse files
author
Brian Chen
committed
resolve gil's comments
1 parent c00cb81 commit f24f33f

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

packages/firebase/index.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6064,14 +6064,14 @@ declare namespace firebase.firestore {
60646064
/**
60656065
* Clears the persistent storage.
60666066
*
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.
60726072
*
60736073
* @return A promise that is resolved once the persistent storage has been
6074-
* cleared.
6074+
* cleared. Otherwise, the promise is rejected with an error.
60756075
*/
60766076
clearPersistence(): Promise<void>;
60776077

packages/firestore-types/index.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,14 @@ export class FirebaseFirestore {
220220
/**
221221
* Clears the persistent storage.
222222
*
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.
228228
*
229229
* @return A promise that is resolved once the persistent storage has been
230-
* cleared.
230+
* cleared. Otherwise, the promise rejects with an error.
231231
*/
232232
clearPersistence(): Promise<void>;
233233

0 commit comments

Comments
 (0)