collection function has no generic type
- Vorherrschende Sprache
- TypeScript
- Sterne
- 7.8k
- Forks
- 2.2k
- Ø Merge
- 22 Std. 28 Min.
- Gemergte PRs (30 T.)
- 6
Beschreibung
### Version info
**Angular:**
12.2.0
**Firebase:**
9.4.0
**AngularFire:**
7.2.0
### How to reproduce these conditions
import {
collection,
} from '@angular/fire/firestore';
### Expected behavior
collection suppose to receive generic type of collection documents interface. as stated in docs
import { collection } from '@angular/fire/firestore';
collection(firestore, 'foo') // CollectionReference
### Actual behavior
generic type is not configured, hence causing a problem on passing to update and doc functions with the generic type of the interface set


.
Beitragsleitfaden
Rechercherichtung
Start at the @angular/fire/firestore collection entry point and inspect how its return type is declared. Compare it with the documented collection(firestore, 'foo') usage, then check how the resulting type is passed to update and doc. Done means collection accepts the generic type and preserves it for those calls.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- firebase, typescript
- Bereich
- backend, databases
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100