Updated to angular 11
Now compiling with strict mode in typescript Need to error checking now
This commit is contained in:
@ -3,4 +3,12 @@ export class UpdateProductPricesItem {
|
||||
name: string;
|
||||
oldPrice: number;
|
||||
newPrice: number;
|
||||
|
||||
public constructor(init?: Partial<UpdateProductPricesItem>) {
|
||||
this.id = '';
|
||||
this.name = '';
|
||||
this.oldPrice = 0;
|
||||
this.newPrice = 0;
|
||||
Object.assign(this, init);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user