collection function has no generic type
- Lenguaje dominante
- TypeScript
- Estrellas
- 7.8k
- Forks
- 2.2k
- Merge medio
- 22 h 28 min
- PR fusionados (30 d)
- 6
Descripción
### 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


.
Guía de contribución
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- firebase, typescript
- Área
- backend, databases
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 42/100