Use enums instead of strings

This commit is contained in:
Dolan Miu
2018-06-30 23:41:57 +01:00
parent 6c85ad3188
commit 34a92ab448
2 changed files with 11 additions and 6 deletions

View File

@ -3,8 +3,13 @@ import { Paragraph } from "../../paragraph";
import { FootnoteAttributes } from "./footnote-attributes";
import { FootnoteRefRun } from "./run/footnote-ref-run";
export class FootNote extends XmlComponent {
constructor(id: number, type?: string) {
export enum FootnoteType {
SEPERATOR = "separator",
CONTINUATION_SEPERATOR = "continuationSeparator",
}
export class Footnote extends XmlComponent {
constructor(id: number, type?: FootnoteType) {
super("w:footnote");
this.root.push(
new FootnoteAttributes({