We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DocumentSnapshot.get
1 parent 970756d commit d5b66caCopy full SHA for d5b66ca
packages/firestore/lib/index.d.ts
@@ -565,7 +565,7 @@ export namespace FirebaseFirestoreTypes {
565
*
566
* @param fieldPath The path (e.g. 'foo' or 'foo.bar') to a specific field.
567
*/
568
- get<fieldType extends DocumentFieldType>(fieldPath: keyof T | FieldPath): fieldType;
+ get<fieldType extends DocumentFieldType>(fieldPath: keyof T | string | FieldPath): fieldType;
569
570
/**
571
* Returns true if this `DocumentSnapshot` is equal to the provided one.
0 commit comments