From 957ded9f3748eb8c181eff15de4f8d6c24474d4e Mon Sep 17 00:00:00 2001 From: James Daniels Date: Wed, 18 Nov 2020 18:50:25 -0500 Subject: [PATCH] fix(afs): fix regression keeping one from overriding collection.doc type --- src/firestore/collection/collection.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/firestore/collection/collection.ts b/src/firestore/collection/collection.ts index d76cb35f3..9e77f27a0 100644 --- a/src/firestore/collection/collection.ts +++ b/src/firestore/collection/collection.ts @@ -141,7 +141,8 @@ export class AngularFirestoreCollection { /** * Create a reference to a single document in a collection. */ - doc(path?: string): AngularFirestoreDocument { - return new AngularFirestoreDocument(this.ref.doc(path), this.afs); + doc(path?: string): AngularFirestoreDocument { + // TODO is there a better way to solve this type issue + return new AngularFirestoreDocument(this.ref.doc(path) as any, this.afs); } }