Skip to content

Commit

Permalink
fix(afs): added missing type to doc() (#1286)
Browse files Browse the repository at this point in the history
  • Loading branch information
larssn authored and jamesdaniels committed Oct 25, 2017
1 parent 61245a3 commit 3e00e16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/firestore/collection/collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class AngularFirestoreCollection<T> {
* Create a reference to a single document in a collection.
* @param path
*/
doc(path: string) {
return new AngularFirestoreDocument(this.ref.doc(path));
doc<T>(path: string) {
return new AngularFirestoreDocument<T>(this.ref.doc(path));
}
}

0 comments on commit 3e00e16

Please sign in to comment.