Skip to content

add clearPersistence() to index.d.ts #1717

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Jun 5, 2019
12 changes: 6 additions & 6 deletions packages/firebase/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6064,14 +6064,14 @@ declare namespace firebase.firestore {
/**
* Clears the persistent storage.
*
* Must be called after the app is shutdown or before other methods (other
* than settings()) on startup. If the client is still running, an exception
* `code` will be thrown.
*
* * failed-precondition: The client is still running in a browser tab.
* Must be called while the client is not started (after the app is shutdown
* or when the app is first initialized). On startup, this method must called
* before other methods (other than settings()). If the client is still
* running, an exception with the a code of `failed-precondition` will be
* thrown.
*
* @return A promise that is resolved once the persistent storage has been
* cleared.
* cleared. Otherwise, the promise is rejected with an error.
*/
clearPersistence(): Promise<void>;

Expand Down
12 changes: 6 additions & 6 deletions packages/firestore-types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,14 @@ export class FirebaseFirestore {
/**
* Clears the persistent storage.
*
* Must be called after the app is shutdown or before other methods (other
* than settings()) on startup. If the client is still running, an exception
* `code` will be thrown.
*
* * failed-precondition: The client is still running in a browser tab.
* Must be called while the client is not started (after the app is shutdown
* or when the app is first initialized). On startup, this method must called
* before other methods (other than settings()). If the client is still
* running, an exception with the a code of `failed-precondition` will be
* thrown.
*
* @return A promise that is resolved once the persistent storage has been
* cleared.
* cleared. Otherwise, the promise rejects with an error.
*/
clearPersistence(): Promise<void>;

Expand Down