Skip to content

Commit

Permalink
fix: Add string type to DocumentSnapshot.get
Browse files Browse the repository at this point in the history
  • Loading branch information
ChromeQ authored Jan 27, 2024
1 parent 970756d commit afe3b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/firestore/lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ export namespace FirebaseFirestoreTypes {
*
* @param fieldPath The path (e.g. 'foo' or 'foo.bar') to a specific field.
*/
get<fieldType extends DocumentFieldType>(fieldPath: keyof T | FieldPath): fieldType;
get<fieldType extends DocumentFieldType>(fieldPath: keyof T | string | FieldPath): fieldType;

/**
* Returns true if this `DocumentSnapshot` is equal to the provided one.
Expand Down

0 comments on commit afe3b94

Please sign in to comment.