We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21cf7c2 commit f7bbd09Copy full SHA for f7bbd09
src/firestore/collection/collection.ts
@@ -141,7 +141,7 @@ export class AngularFirestoreCollection<T= DocumentData> {
141
/**
142
* Create a reference to a single document in a collection.
143
*/
144
- doc<T>(path?: string): AngularFirestoreDocument<T> {
145
- return new AngularFirestoreDocument<T>(this.ref.doc(path), this.afs);
+ doc<T2 = T>(path?: string): AngularFirestoreDocument<T2> {
+ return new AngularFirestoreDocument<T2>(this.ref.doc(path), this.afs);
146
}
147
0 commit comments