Skip to content

Property 'isEqual' is missing in type #7813

@VictorLeach96

Description

@VictorLeach96

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 = value

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions