Skip to content

Commit 0482aa5

Browse files
authored
Revise comment for exists() (#5974)
Clarifying that this is a method, not a property (as it was in v8)
1 parent 00916e7 commit 0482aa5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/firestore/src/api/snapshot.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,7 @@ export class DocumentSnapshot<
258258
}
259259

260260
/**
261-
* Property of the `DocumentSnapshot` that signals whether or not the data
262-
* exists. True if the document exists.
261+
* Returns whether or not the data exists. True if the document exists.
263262
*/
264263
exists(): this is QueryDocumentSnapshot<T> {
265264
return super.exists();

0 commit comments

Comments
 (0)