I cannot cast Observable<CustomType> to just CustomType like this:
custObject: CustomType;
ngOnInit() {
this.custObject = this.customDocument.valeueChanges() as CustomTpe;
}
I receive an error like this:
Observable cannot be converted to 'CustomType'. Property 'typeid' is missing in type 'Observable'.