Skip to content

Commit d5b66ca

Browse files
authored
fix(firestore, types): Add string type to DocumentSnapshot.get (#7593)
1 parent 970756d commit d5b66ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firestore/lib/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ export namespace FirebaseFirestoreTypes {
565565
*
566566
* @param fieldPath The path (e.g. 'foo' or 'foo.bar') to a specific field.
567567
*/
568-
get<fieldType extends DocumentFieldType>(fieldPath: keyof T | FieldPath): fieldType;
568+
get<fieldType extends DocumentFieldType>(fieldPath: keyof T | string | FieldPath): fieldType;
569569

570570
/**
571571
* Returns true if this `DocumentSnapshot` is equal to the provided one.

0 commit comments

Comments
 (0)