Fix lint and style errors

This commit is contained in:
askoufis
2021-09-18 23:14:13 +10:00
parent 3a795401d1
commit eec084767f
2 changed files with 9 additions and 8 deletions

View File

@ -8,19 +8,19 @@ export interface IColumnAttributes {
export class ColumnAttributes extends XmlAttributeComponent<IColumnAttributes> {
protected readonly xmlKeys = {
width: 'w:w',
space: 'w:space',
}
width: "w:w",
space: "w:space",
};
}
export class Column extends XmlComponent {
constructor({width, space}: IColumnAttributes) {
constructor({ width, space }: IColumnAttributes) {
super("w:col");
this.root.push(
new ColumnAttributes({
width: twipsMeasureValue(width),
space: space === undefined ? undefined : twipsMeasureValue(space),
})
)
}),
);
}
}