I'm trying to declare a variable in my service for an AngularFirestoreDocument ref. When I do so I get this TypeScript error:
Generic type 'AngularFirestoreDocument' requires 2 type argument(s)
I've seen it done this way in multiple code examples and can't figure out why I'm getting this error. It does compile okay.
Versions:
- angular: 6.0.2
- angularfire2: 5.0.0-rc.10
- firebase: 5.0.4
Here is a snippet of the code:
import { AngularFirestore, AngularFirestoreDocument } from 'angularfire2/firestore';
@Injectable()
export class GiftListService {
giftListRef: AngularFirestoreDocument<GiftList>;