Error msg "Argument of type '{ 'itemType': string; 'qty': string; 'time': string; }' is not assignable to parameter of type 'openInventory[]'. Property 'length' is missing in type '{ 'itemType': string; 'qty': string; 'time': string; }'."
Snippet
openInventorys: AngularFireList<openInventory[]>;
openInventory: AngularFireObject<any>;
addOpenInventory(org: any, type:string, qty:string) {
this.openInventorys = this.af.list('/inventory/' + org+ '/openInventory') ;
var openInventoryData = { 'itemType': type, 'qty': qty, 'time': moment().format('YYYY-MM-DD HH:mm') };
this.openInventorys.push(openInventoryData);
}
interface openInventory {
$key?: string;
itemType?: string;
qty?: string;
time?: string;
}