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 {
523523 * .`data()` or `.get(:field)` to get a specific field.
524524 *
525525 * 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.
527527 */
528528 export interface DocumentSnapshot < T extends DocumentData = DocumentData > {
529529 /**
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.
531531 */
532- exists : boolean ;
532+ exists ( ) : boolean ;
533533
534534 /**
535535 * Property of the `DocumentSnapshot` that provides the document's ID.
@@ -597,14 +597,14 @@ export namespace FirebaseFirestoreTypes {
597597 * The document is guaranteed to exist and its data can be extracted with .data() or .get(:field) to get a specific field.
598598 *
599599 * 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'.
601601 */
602602 export interface QueryDocumentSnapshot < T extends DocumentData = DocumentData >
603603 extends DocumentSnapshot < T > {
604604 /**
605605 * A QueryDocumentSnapshot is always guaranteed to exist.
606606 */
607- exists : true ;
607+ exists ( ) : true ;
608608
609609 /**
610610 * Retrieves all fields in the document as an Object.
You can’t perform that action at this time.
0 commit comments