@@ -98,10 +98,10 @@ export interface SnapshotListenOptions {
98
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
- * {@link getDocFromCache()} or @link getDocFromServer()}.
101
+ * {@link getDocFromCache()} or { @link getDocFromServer()}.
102
102
*
103
103
* @param reference The reference of the document to fetch.
104
- * @return A Promise resolved with a DocumentSnapshot containing the
104
+ * @return A Promise resolved with a ` DocumentSnapshot` containing the
105
105
* current document contents.
106
106
*/
107
107
export function getDoc < T > (
@@ -130,7 +130,7 @@ export function getDoc<T>(
130
130
* Reads the document referred to by this `DocumentReference` from cache.
131
131
* Returns an error if the document is not currently cached.
132
132
*
133
- * @return A Promise resolved with a DocumentSnapshot containing the
133
+ * @return A Promise resolved with a ` DocumentSnapshot` containing the
134
134
* current document contents.
135
135
*/
136
136
export function getDocFromCache < T > (
@@ -163,7 +163,7 @@ export function getDocFromCache<T>(
163
163
* Reads the document referred to by this `DocumentReference` from the server.
164
164
* Returns an error if the network is not available.
165
165
*
166
- * @return A Promise resolved with a DocumentSnapshot containing the
166
+ * @return A Promise resolved with a ` DocumentSnapshot` containing the
167
167
* current document contents.
168
168
*/
169
169
export function getDocFromServer < T > (
@@ -196,7 +196,7 @@ export function getDocFromServer<T>(
196
196
* you are offline and the server cannot be reached. To specify this behavior,
197
197
* invoke {@link getDocsFromCache()} or {@link getDocsFromServer()}.
198
198
*
199
- * @return A Promise that will be resolved with the results of the Query .
199
+ * @return A Promise that will be resolved with the results of the query .
200
200
*/
201
201
export function getDocs < T > ( query : Query < T > ) : Promise < QuerySnapshot < T > > {
202
202
const firestore = cast ( query . firestore , FirebaseFirestore ) ;
@@ -224,7 +224,7 @@ export function getDocs<T>(query: Query<T>): Promise<QuerySnapshot<T>> {
224
224
* Executes the query and returns the results as a `QuerySnapshot` from cache.
225
225
* Returns an error if the document is not currently cached.
226
226
*
227
- * @return A Promise that will be resolved with the results of the Query .
227
+ * @return A Promise that will be resolved with the results of the query .
228
228
*/
229
229
export function getDocsFromCache < T > (
230
230
query : Query < T >
@@ -244,9 +244,9 @@ export function getDocsFromCache<T>(
244
244
245
245
/**
246
246
* Executes the query and returns the results as a `QuerySnapshot` from the
247
- * server. Returns an error if the network is not available..
247
+ * server. Returns an error if the network is not available.
248
248
*
249
- * @return A Promise that will be resolved with the results of the Query .
249
+ * @return A Promise that will be resolved with the results of the query .
250
250
*/
251
251
export function getDocsFromServer < T > (
252
252
query : Query < T >
@@ -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 (Note that it won't resolve while you're offline).
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 (Note that it won't resolve while you're offline).
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 (Note that it won't resolve while you're offline).
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 > ,
@@ -348,14 +348,14 @@ export function updateDoc(
348
348
* not exist.
349
349
*
350
350
* Nested fields can be updated by providing dot-separated field path
351
- * strings or by providing FieldPath objects.
351
+ * strings or by providing ` FieldPath` objects.
352
352
*
353
353
* @param reference A reference to the document to update.
354
354
* @param field The first field to update.
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 (Note that it won't resolve while you're offline).
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 (Note that it won't resolve while you're offline).
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 >
@@ -424,7 +424,7 @@ export function deleteDoc(
424
424
* Add a new document to specified `CollectionReference` with the given data,
425
425
* assigning it a document ID automatically.
426
426
*
427
- * @param reference A reference to the Collection to add this document to.
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
430
* newly created document after it has been written to the backend (Note that it
@@ -461,7 +461,7 @@ export function addDoc<T>(
461
461
// integration tests
462
462
463
463
/**
464
- * Attaches a listener for DocumentSnapshot events. You may either pass
464
+ * Attaches a listener for ` DocumentSnapshot` events. You may either pass
465
465
* individual `onNext` and `onError` callbacks or pass a single observer
466
466
* object with `next` and `error` callbacks.
467
467
*
@@ -482,7 +482,7 @@ export function onSnapshot<T>(
482
482
}
483
483
) : Unsubscribe ;
484
484
/**
485
- * Attaches a listener for DocumentSnapshot events. You may either pass
485
+ * Attaches a listener for ` DocumentSnapshot` events. You may either pass
486
486
* individual `onNext` and `onError` callbacks or pass a single observer
487
487
* object with `next` and `error` callbacks.
488
488
*
@@ -505,7 +505,7 @@ export function onSnapshot<T>(
505
505
}
506
506
) : Unsubscribe ;
507
507
/**
508
- * Attaches a listener for DocumentSnapshot events. You may either pass
508
+ * Attaches a listener for ` DocumentSnapshot` events. You may either pass
509
509
* individual `onNext` and `onError` callbacks or pass a single observer
510
510
* object with `next` and `error` callbacks.
511
511
*
@@ -529,7 +529,7 @@ export function onSnapshot<T>(
529
529
onCompletion ?: ( ) => void
530
530
) : Unsubscribe ;
531
531
/**
532
- * Attaches a listener for DocumentSnapshot events. You may either pass
532
+ * Attaches a listener for ` DocumentSnapshot` events. You may either pass
533
533
* individual `onNext` and `onError` callbacks or pass a single observer
534
534
* object with `next` and `error` callbacks.
535
535
*
@@ -555,7 +555,7 @@ export function onSnapshot<T>(
555
555
onCompletion ?: ( ) => void
556
556
) : Unsubscribe ;
557
557
/**
558
- * Attaches a listener for QuerySnapshot events. You may either pass
558
+ * Attaches a listener for ` QuerySnapshot` events. You may either pass
559
559
* individual `onNext` and `onError` callbacks or pass a single observer
560
560
* object with `next` and `error` callbacks. The listener can be cancelled by
561
561
* calling the function that is returned when `onSnapshot` is called.
@@ -577,7 +577,7 @@ export function onSnapshot<T>(
577
577
}
578
578
) : Unsubscribe ;
579
579
/**
580
- * Attaches a listener for QuerySnapshot events. You may either pass
580
+ * Attaches a listener for ` QuerySnapshot` events. You may either pass
581
581
* individual `onNext` and `onError` callbacks or pass a single observer
582
582
* object with `next` and `error` callbacks. The listener can be cancelled by
583
583
* calling the function that is returned when `onSnapshot` is called.
@@ -601,7 +601,7 @@ export function onSnapshot<T>(
601
601
}
602
602
) : Unsubscribe ;
603
603
/**
604
- * Attaches a listener for QuerySnapshot events. You may either pass
604
+ * Attaches a listener for ` QuerySnapshot` events. You may either pass
605
605
* individual `onNext` and `onError` callbacks or pass a single observer
606
606
* object with `next` and `error` callbacks. The listener can be cancelled by
607
607
* calling the function that is returned when `onSnapshot` is called.
@@ -626,7 +626,7 @@ export function onSnapshot<T>(
626
626
onCompletion ?: ( ) => void
627
627
) : Unsubscribe ;
628
628
/**
629
- * Attaches a listener for QuerySnapshot events. You may either pass
629
+ * Attaches a listener for ` QuerySnapshot` events. You may either pass
630
630
* individual `onNext` and `onError` callbacks or pass a single observer
631
631
* object with `next` and `error` callbacks. The listener can be cancelled by
632
632
* calling the function that is returned when `onSnapshot` is called.
0 commit comments