Fix tslint and related errors.
This commit is contained in:
@@ -5,8 +5,8 @@ export class Module {
|
||||
private keyboardButtons: KeyboardButton[];
|
||||
|
||||
constructor(obj: { rect: any[], path: any[] }, fill?: string) {
|
||||
this.keyboardButtons = obj.rect.map(obj => obj.$);
|
||||
this.keyboardButtons = obj.rect.map(rect => rect.$);
|
||||
this.keyboardButtons.forEach(keyboardButton => keyboardButton.fill = fill ? fill : 'black');
|
||||
this.case = obj.path[0].$;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user