File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -523,13 +523,13 @@ export namespace FirebaseFirestoreTypes {
523
523
* .`data()` or `.get(:field)` to get a specific field.
524
524
*
525
525
* For a DocumentSnapshot that points to a non-existing document, any data access will return 'undefined'.
526
- * You can use the `exists` property to explicitly verify a document's existence.
526
+ * You can use the `exists()` method to explicitly verify a document's existence.
527
527
*/
528
528
export interface DocumentSnapshot < T extends DocumentData = DocumentData > {
529
529
/**
530
- * Property of the `DocumentSnapshot` that signals whether or not the data exists. True if the document exists.
530
+ * Method of the `DocumentSnapshot` that signals whether or not the data exists. True if the document exists.
531
531
*/
532
- exists : boolean ;
532
+ exists ( ) : boolean ;
533
533
534
534
/**
535
535
* Property of the `DocumentSnapshot` that provides the document's ID.
@@ -597,14 +597,14 @@ export namespace FirebaseFirestoreTypes {
597
597
* The document is guaranteed to exist and its data can be extracted with .data() or .get(:field) to get a specific field.
598
598
*
599
599
* A QueryDocumentSnapshot offers the same API surface as a DocumentSnapshot.
600
- * Since query results contain only existing documents, the exists property will always be true and data() will never return 'undefined'.
600
+ * Since query results contain only existing documents, the exists() method will always be true and data() will never return 'undefined'.
601
601
*/
602
602
export interface QueryDocumentSnapshot < T extends DocumentData = DocumentData >
603
603
extends DocumentSnapshot < T > {
604
604
/**
605
605
* A QueryDocumentSnapshot is always guaranteed to exist.
606
606
*/
607
- exists : true ;
607
+ exists ( ) : true ;
608
608
609
609
/**
610
610
* Retrieves all fields in the document as an Object.
You can’t perform that action at this time.
0 commit comments