From afe3b94b6ae831834776f69052329663f80603aa Mon Sep 17 00:00:00 2001 From: Dav Date: Sat, 27 Jan 2024 14:05:43 +1100 Subject: [PATCH] fix: Add string type to `DocumentSnapshot.get` --- packages/firestore/lib/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/firestore/lib/index.d.ts b/packages/firestore/lib/index.d.ts index cdc0459547..5a46fdc944 100644 --- a/packages/firestore/lib/index.d.ts +++ b/packages/firestore/lib/index.d.ts @@ -565,7 +565,7 @@ export namespace FirebaseFirestoreTypes { * * @param fieldPath The path (e.g. 'foo' or 'foo.bar') to a specific field. */ - get(fieldPath: keyof T | FieldPath): fieldType; + get(fieldPath: keyof T | string | FieldPath): fieldType; /** * Returns true if this `DocumentSnapshot` is equal to the provided one.