Updated to angular 11
Now compiling with strict mode in typescript Need to error checking now
This commit is contained in:
@ -3,6 +3,14 @@ import { BeerSaleReportItem } from './beer-sale-report-item';
|
||||
export class BeerSaleReport {
|
||||
startDate: string;
|
||||
finishDate: string;
|
||||
headers?: string[];
|
||||
data?: BeerSaleReportItem[];
|
||||
headers: string[];
|
||||
data: BeerSaleReportItem[];
|
||||
|
||||
public constructor(init?: Partial<BeerSaleReport>) {
|
||||
this.startDate = '';
|
||||
this.finishDate = '';
|
||||
this.data = [];
|
||||
this.headers = [];
|
||||
Object.assign(this, init);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user