You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Uppercase<string> on a type for a CollectionReference causes an error when using updateDoc, when it shouldn't.
Steps to reproduce:
Create a collection reference with an object type with an Uppercase<string> attribute. Then try using updateDoc, and compile with TypeScript. Get the following error:
Type error: Argument of type '{ other: string; }' is not assignable to parameter of type '{ code?: FieldValue | UpdateData<Uppercase<string>>; other?: string | FieldValue; } & UnionToIntersection<ChildUpdateFields<"code", Uppercase<string>>>'.
Type '{ other: string; }' is not assignable to type 'UnionToIntersection<ChildUpdateFields<"code", Uppercase<string>>>'.
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
Using
Uppercase<string>
on a type for aCollectionReference
causes an error when using updateDoc, when it shouldn't.Steps to reproduce:
Create a collection reference with an object type with an
Uppercase<string>
attribute. Then try usingupdateDoc
, and compile with TypeScript. Get the following error:Relevant Code:
The text was updated successfully, but these errors were encountered: