@@ -57,25 +57,26 @@ export interface Settings {
57
57
timestampsInSnapshots ?: boolean ;
58
58
}
59
59
60
- /**
61
- * Settings that can be passed to Firestore.enablePersistence() to configure
62
- * Firestore persistence.
63
- */
64
- export interface PersistenceSettings {
65
- /**
66
- * Whether to synchronize the in-memory state of multiple tabs. Setting this
67
- * to 'true' in all open tabs enables shared access to local persistence,
68
- * shared execution of queries and latency-compensated local document updates
69
- * across all connected instances.
70
- *
71
- * To enable this mode, `experimentalTabSynchronization:true` needs to be set
72
- * globally in all active tabs. If omitted or set to 'false',
73
- * `enablePersistence()` will fail in all but the first tab.
74
- *
75
- * NOTE: This mode is not yet recommended for production use.
76
- */
77
- experimentalTabSynchronization ?: boolean ;
78
- }
60
+ // TODO(multitab): Uncomment when multi-tab is released publicly.
61
+ // /**
62
+ // * Settings that can be passed to Firestore.enablePersistence() to configure
63
+ // * Firestore persistence.
64
+ // */
65
+ // export interface PersistenceSettings {
66
+ // /**
67
+ // * Whether to synchronize the in-memory state of multiple tabs. Setting this
68
+ // * to 'true' in all open tabs enables shared access to local persistence,
69
+ // * shared execution of queries and latency-compensated local document updates
70
+ // * across all connected instances.
71
+ // *
72
+ // * To enable this mode, `experimentalTabSynchronization:true` needs to be set
73
+ // * globally in all active tabs. If omitted or set to 'false',
74
+ // * `enablePersistence()` will fail in all but the first tab.
75
+ // *
76
+ // * NOTE: This mode is not yet recommended for production use.
77
+ // */
78
+ // experimentalTabSynchronization?: boolean;
79
+ // }
79
80
80
81
export type LogLevel = 'debug' | 'error' | 'silent' ;
81
82
@@ -111,11 +112,33 @@ export class FirebaseFirestore {
111
112
* * unimplemented: The browser is incompatible with the offline
112
113
* persistence implementation.
113
114
*
114
- * @param settings Optional settings object to configure persistence.
115
115
* @return A promise that represents successfully enabling persistent
116
116
* storage.
117
117
*/
118
- enablePersistence ( settings ?: PersistenceSettings ) : Promise < void > ;
118
+ enablePersistence ( ) : Promise < void > ;
119
+
120
+ // TODO(multitab): Uncomment when multi-tab is released publicly.
121
+ // /**
122
+ // * Attempts to enable persistent storage, if possible.
123
+ // *
124
+ // * Must be called before any other methods (other than settings()).
125
+ // *
126
+ // * If this fails, enablePersistence() will reject the promise it returns.
127
+ // * Note that even after this failure, the firestore instance will remain
128
+ // * usable, however offline persistence will be disabled.
129
+ // *
130
+ // * There are several reasons why this can fail, which can be identified by
131
+ // * the `code` on the error.
132
+ // *
133
+ // * * failed-precondition: The app is already open in another browser tab.
134
+ // * * unimplemented: The browser is incompatible with the offline
135
+ // * persistence implementation.
136
+ // *
137
+ // * @param settings Optional settings object to configure persistence.
138
+ // * @return A promise that represents successfully enabling persistent
139
+ // * storage.
140
+ // */
141
+ // enablePersistence(settings?: PersistenceSettings): Promise<void>;
119
142
120
143
/**
121
144
* Gets a `CollectionReference` instance that refers to the collection at
0 commit comments