-
Notifications
You must be signed in to change notification settings - Fork 991
Open
Description
Operating System
14.1.1
Browser Version
Chrome/119.0.6045.159
Firebase SDK Version
10.6.0
Firebase SDK Product:
Firestore
Describe your project's tooling
NodeJS/Firestore
Describe the problem
Error when using Record type with UpdateData.
Type 'Record<string, { id: string; }>' is not assignable to type 'FieldValue | ({ [x: string]: { id?: string | FieldValue | undefined; } | FieldValue | undefined; } & AddPrefixToKeys<string, { id?: string | FieldValue | undefined; }>) | undefined'.
Property 'isEqual' is missing in type 'Record<string, { id: string; }>' but required in type 'FieldValue'.Steps and code to reproduce issue
const update: UpdateData<{ prop: Record<string, { id: string }> }> = {}
const value: Record<string, { id: string }> = {
key: { id: '' }
}
update.prop = valueoodavid