change demos to typescript and WidthType disparity

This commit is contained in:
Dolan
2018-08-23 01:05:26 +01:00
parent 877dcb462f
commit fe2032a3d4
5 changed files with 39 additions and 37 deletions

View File

@ -12,7 +12,7 @@ import {
import { IXmlableObject, XmlComponent } from "file/xml-components";
import { Paragraph } from "../paragraph";
import { TableGrid } from "./grid";
import { TableProperties, WidthTypes } from "./properties";
import { TableProperties } from "./properties";
export class Table extends XmlComponent {
private readonly properties: TableProperties;
@ -67,7 +67,7 @@ export class Table extends XmlComponent {
return this.getRow(row).getCell(col);
}
public setWidth(type: WidthTypes, width: number | string): Table {
public setWidth(type: WidthType, width: number | string): Table {
this.properties.setWidth(type, width);
return this;
}