Skip to content

Commit acd7b24

Browse files
author
Brian Chen
committed
adding index
1 parent be5e65f commit acd7b24

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

packages/firebase/index.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6060,6 +6060,13 @@ declare namespace firebase.firestore {
60606060
*/
60616061
app: firebase.app.App;
60626062

6063+
/**
6064+
* Clears the persistence cache. This can only be called when the client is not running.
6065+
*
6066+
* @return A promise that is resolved once the persistence has been cleared.
6067+
*/
6068+
clearPersistence(): Promise<void>;
6069+
60636070
/**
60646071
* Re-enables use of the network for this Firestore instance after a prior
60656072
* call to {@link firebase.firestore.Firestore.disableNetwork

packages/firestore-types/index.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,13 @@ export class FirebaseFirestore {
216216
*/
217217
app: any;
218218

219+
/**
220+
* Clears the persistence cache. This can only be called when the client is not running.
221+
*
222+
* @return A promise that is resolved once the persistence has been cleared.
223+
*/
224+
clearPersistence(): Promise<void>;
225+
219226
/**
220227
* Re-enables use of the network for this Firestore instance after a prior
221228
* call to disableNetwork().

0 commit comments

Comments
 (0)