Allow indent to use other options than left and hanging

This is a breaking change. Existing code using indent will break when padding in the number for left.
This commit is contained in:
Jacob Wright
2017-09-16 12:31:31 -06:00
parent 19b122684c
commit 3a7f9053b9
8 changed files with 26 additions and 23 deletions

View File

@ -196,8 +196,8 @@ export class LevelBase extends XmlComponent {
return this;
}
public indent(left: number, hanging?: number): Level {
this.addParagraphProperty(new paragraph.Indent(left, hanging));
public indent(attrs: object): Level {
this.addParagraphProperty(new paragraph.Indent(attrs));
return this;
}