Well, lets say i implement the way it is in the docs. I get this:
import { DocumentData } from "@angular/fire/firestore";
export interface Householdbook extends DocumentData {
id: string;
name: string;
description: string;
}
export class HouseholdbooksOverviewPageComponent implements OnInit {
currentUser$ = this.auth.user$;
item$: Observable<Householdbook[]>;
constructor(
private auth: AuthService,
private store: Firestore
) {}
ngOnInit(): void {
const itemCollection = collection(this.store, 'householdbooks');
this.item$ = collectionData(itemCollection);
}
However, i end up getting:
Type 'Observable<DocumentData[]>' is not assignable to type 'Observable<Householdbook[]>'.
Type 'DocumentData[]' is not assignable to type 'Householdbook[]'.
Type 'DocumentData' is missing the following properties from type 'Householdbook': id, name, description```