Correctly exporting methods

This commit is contained in:
Dolan
2019-11-23 02:26:59 +00:00
parent bf1d10e893
commit b37aefdc8d
8 changed files with 15 additions and 11 deletions

View File

@ -44,7 +44,9 @@ export interface IParagraphOptions {
readonly level: number;
readonly custom?: boolean;
};
readonly children?: Array<TextRun | PictureRun | Hyperlink | SymbolRun | Bookmark | PageBreak | SequentialIdentifier>;
readonly children?: Array<
TextRun | PictureRun | Hyperlink | SymbolRun | Bookmark | PageBreak | SequentialIdentifier | FootnoteReferenceRun
>;
}
export class Paragraph extends XmlComponent {
@ -157,11 +159,6 @@ export class Paragraph extends XmlComponent {
}
}
public referenceFootnote(id: number): Paragraph {
this.root.push(new FootnoteReferenceRun(id));
return this;
}
public addRunToFront(run: Run): Paragraph {
this.root.splice(1, 0, run);
return this;