@@ -95,7 +95,7 @@ export interface SnapshotListenOptions {
95
95
/**
96
96
* Reads the document referred to by this `DocumentReference`.
97
97
*
98
- * Note: getDoc() attempts to provide up-to-date data when possible by waiting
98
+ * Note: ` getDoc()` attempts to provide up-to-date data when possible by waiting
99
99
* for data from the server, but it may return cached data or fail if you are
100
100
* offline and the server cannot be reached. To specify this behavior, invoke
101
101
* {@link getDocFromCache()} or @link getDocFromServer()}.
@@ -128,7 +128,7 @@ export function getDoc<T>(
128
128
129
129
/**
130
130
* Reads the document referred to by this `DocumentReference` from cache.
131
- * Returns an error of the document is not currently cached.
131
+ * Returns an error if the document is not currently cached.
132
132
*
133
133
* @return A Promise resolved with a DocumentSnapshot containing the
134
134
* current document contents.
@@ -191,10 +191,10 @@ export function getDocFromServer<T>(
191
191
/**
192
192
* Executes the query and returns the results as a `QuerySnapshot`.
193
193
*
194
- * Note: getDocs() attempts to provide up-to-date data when possible by waiting
195
- * for data from the server, but it may return cached data or fail if you are
196
- * offline and the server cannot be reached. To specify this behavior, invoke
197
- * {@link getDocsFromCache()} or {@link getDocsFromServer()}.
194
+ * Note: ` getDocs()` attempts to provide up-to-date data when possible by
195
+ * waiting for data from the server, but it may return cached data or fail if
196
+ * you are offline and the server cannot be reached. To specify this behavior,
197
+ * invoke {@link getDocsFromCache()} or {@link getDocsFromServer()}.
198
198
*
199
199
* @return A Promise that will be resolved with the results of the Query.
200
200
*/
@@ -222,7 +222,7 @@ export function getDocs<T>(query: Query<T>): Promise<QuerySnapshot<T>> {
222
222
223
223
/**
224
224
* Executes the query and returns the results as a `QuerySnapshot` from cache.
225
- * Returns an error of the document is not currently cached.
225
+ * Returns an error if the document is not currently cached.
226
226
*
227
227
* @return A Promise that will be resolved with the results of the Query.
228
228
*/
@@ -277,7 +277,7 @@ export function getDocsFromServer<T>(
277
277
* @param reference A reference to the document to write.
278
278
* @param data A map of the fields and values for the document.
279
279
* @return A Promise resolved once the data has been successfully written
280
- * to the backend.
280
+ * to the backend (Note that it won't resolve while you're offline) .
281
281
*/
282
282
export function setDoc < T > (
283
283
reference : DocumentReference < T > ,
@@ -292,7 +292,7 @@ export function setDoc<T>(
292
292
* @param data A map of the fields and values for the document.
293
293
* @param options An object to configure the set behavior.
294
294
* @return A Promise resolved once the data has been successfully written
295
- * to the backend.
295
+ * to the backend (Note that it won't resolve while you're offline) .
296
296
*/
297
297
export function setDoc < T > (
298
298
reference : DocumentReference < T > ,
@@ -336,7 +336,7 @@ export function setDoc<T>(
336
336
* update the document. Fields can contain dots to reference nested fields
337
337
* within the document.
338
338
* @return A Promise resolved once the data has been successfully written
339
- * to the backend.
339
+ * to the backend (Note that it won't resolve while you're offline) .
340
340
*/
341
341
export function updateDoc (
342
342
reference : DocumentReference < unknown > ,
@@ -355,7 +355,7 @@ export function updateDoc(
355
355
* @param value The first value.
356
356
* @param moreFieldsAndValues Additional key value pairs.
357
357
* @return A Promise resolved once the data has been successfully written
358
- * to the backend.
358
+ * to the backend (Note that it won't resolve while you're offline) .
359
359
*/
360
360
export function updateDoc (
361
361
reference : DocumentReference < unknown > ,
@@ -408,7 +408,7 @@ export function updateDoc(
408
408
*
409
409
* @param reference A reference to the document to delete.
410
410
* @return A Promise resolved once the document has been successfully
411
- * deleted from the backend.
411
+ * deleted from the backend (Note that it won't resolve while you're offline) .
412
412
*/
413
413
export function deleteDoc (
414
414
reference : DocumentReference < unknown >
@@ -427,7 +427,8 @@ export function deleteDoc(
427
427
* @param reference A reference to the Collection to add this document to.
428
428
* @param data An Object containing the data for the new document.
429
429
* @return A Promise resolved with a `DocumentReference` pointing to the
430
- * newly created document after it has been written to the backend.
430
+ * newly created document after it has been written to the backend (Note that it
431
+ * won't resolve while you're offline).
431
432
*/
432
433
export function addDoc < T > (
433
434
reference : CollectionReference < T > ,
0 commit comments