* feat: change all enums to as const objects * Add word to dictionary --------- Co-authored-by: Dolan Miu <dolan_miu@hotmail.com>
23 lines
520 B
TypeScript
23 lines
520 B
TypeScript
import { Attributes, XmlComponent } from "@file/xml-components";
|
|
|
|
export const HeadingLevel = {
|
|
HEADING_1: "Heading1",
|
|
HEADING_2: "Heading2",
|
|
HEADING_3: "Heading3",
|
|
HEADING_4: "Heading4",
|
|
HEADING_5: "Heading5",
|
|
HEADING_6: "Heading6",
|
|
TITLE: "Title",
|
|
} as const;
|
|
|
|
export class Style extends XmlComponent {
|
|
public constructor(styleId: string) {
|
|
super("w:pStyle");
|
|
this.root.push(
|
|
new Attributes({
|
|
val: styleId,
|
|
}),
|
|
);
|
|
}
|
|
}
|