firebase / firebase/firebase-js-sdk
Property 'isEqual' is missing in type
- Dominant language
- TypeScript
- Stars
- 5.1k
- Forks
- 1k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 37
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`.
```typescript
Type 'Record' is not assignable to type 'FieldValue | ({ [x: string]: { id?: string | FieldValue | undefined; } | FieldValue | undefined; } & AddPrefixToKeys) | undefined'.
Property 'isEqual' is missing in type 'Record' but required in type 'FieldValue'.
```
### Steps and code to reproduce issue
```typescript
const update: UpdateData<{ prop: Record }> = {}
const value: Record = {
key: { id: '' }
}
update.prop = value
```
Contributor guide
Assessment
This issue has not been assessed yet.