i have a class in Typescript and i am having problem assigning in the this. part of the class. I am getting the folowing error. Type 'ListingHistory' is missing the following properties from type 'ListingHistory[]': length, pop, push, concat, and 26 more.ts(2740)
below is my class with the this section
export class History {
public address: string;
public listingHistory: ListingHistory[];
public saleHistory: SaleHistory[] ;
public mortgageHistory: MortgageHistory[];
constructor(address: string, listingHistory?: ListingHistory, saleHistory ?: SaleHistory ,
mortgageHistory?: MortgageHistory) {
this.address = address;
this.listingHistory = listingHistory;
this.saleHistory(push)saleHistory;
this.mortgageHistory = mortgageHistory;
}