We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f89643 commit 22e2883Copy full SHA for 22e2883
src/firestore/collection/collection.ts
@@ -141,7 +141,8 @@ export class AngularFirestoreCollection<T = DocumentData> {
141
/**
142
* Create a reference to a single document in a collection.
143
*/
144
- doc(path?: string): AngularFirestoreDocument<T> {
145
- return new AngularFirestoreDocument<T>(this.ref.doc(path), this.afs);
+ doc<T2 = T>(path?: string): AngularFirestoreDocument<T2> {
+ // TODO is there a better way to solve this type issue
146
+ return new AngularFirestoreDocument(this.ref.doc(path) as any, this.afs);
147
}
148
0 commit comments