collection function has no generic type
- 主要语言
- TypeScript
- 星标
- 7.8k
- 派生
- 2.2k
- 平均合并
- 22 小时 28 分钟
- 30 天内合并 PR
- 6
描述
### 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


.
贡献指南
调研方向
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.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- firebase, typescript
- 领域
- backend, databases
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100