Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property 'isEqual' is missing in type #7813

Open
VictorLeach96 opened this issue Nov 25, 2023 · 0 comments · May be fixed by #7887
Open

Property 'isEqual' is missing in type #7813

VictorLeach96 opened this issue Nov 25, 2023 · 0 comments · May be fixed by #7887

Comments

@VictorLeach96
Copy link

VictorLeach96 commented Nov 25, 2023

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
@VictorLeach96 VictorLeach96 added new A new issue that hasn't be categoirzed as question, bug or feature request question labels Nov 25, 2023
@VictorLeach96 VictorLeach96 changed the title Title for the bug Record is not assignable to type FieldValue Nov 25, 2023
@VictorLeach96 VictorLeach96 changed the title Record is not assignable to type FieldValue Property 'isEqual' is missing in type Nov 25, 2023
@jbalidiong jbalidiong added needs-attention and removed new A new issue that hasn't be categoirzed as question, bug or feature request labels Nov 27, 2023
@milaGGL milaGGL self-assigned this Nov 27, 2023
@MarkDuckworth MarkDuckworth self-assigned this Nov 27, 2023
@milaGGL milaGGL removed their assignment Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants