Initial ESlint conversion
This commit is contained in:
@ -5,7 +5,7 @@ class AliasAttributes extends XmlAttributeComponent<{ readonly alias: string }>
|
||||
}
|
||||
|
||||
export class Alias extends XmlComponent {
|
||||
constructor(alias: string) {
|
||||
public constructor(alias: string) {
|
||||
super("w:alias");
|
||||
this.root.push(new AliasAttributes({ alias }));
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ import { ITableOfContentsOptions } from "./table-of-contents-properties";
|
||||
export class FieldInstruction extends XmlComponent {
|
||||
private readonly properties: ITableOfContentsOptions;
|
||||
|
||||
constructor(properties: ITableOfContentsOptions = {}) {
|
||||
public constructor(properties: ITableOfContentsOptions = {}) {
|
||||
super("w:instrText");
|
||||
|
||||
this.properties = properties;
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { XmlComponent } from "@file/xml-components";
|
||||
|
||||
export class StructuredDocumentTagContent extends XmlComponent {
|
||||
constructor() {
|
||||
public constructor() {
|
||||
super("w:sdtContent");
|
||||
}
|
||||
}
|
||||
|
@ -3,7 +3,7 @@ import { XmlComponent } from "@file/xml-components";
|
||||
import { Alias } from "./alias";
|
||||
|
||||
export class StructuredDocumentTagProperties extends XmlComponent {
|
||||
constructor(alias: string) {
|
||||
public constructor(alias: string) {
|
||||
super("w:sdtPr");
|
||||
this.root.push(new Alias(alias));
|
||||
}
|
||||
|
@ -2,7 +2,7 @@ export class StyleLevel {
|
||||
public readonly styleName: string;
|
||||
public readonly level: number;
|
||||
|
||||
constructor(styleName: string, level: number) {
|
||||
public constructor(styleName: string, level: number) {
|
||||
this.styleName = styleName;
|
||||
this.level = level;
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ import { StructuredDocumentTagProperties } from "./sdt-properties";
|
||||
import { ITableOfContentsOptions } from "./table-of-contents-properties";
|
||||
|
||||
export class TableOfContents extends XmlComponent {
|
||||
constructor(alias: string = "Table of Contents", properties?: ITableOfContentsOptions) {
|
||||
public constructor(alias: string = "Table of Contents", properties?: ITableOfContentsOptions) {
|
||||
super("w:sdt");
|
||||
this.root.push(new StructuredDocumentTagProperties(alias));
|
||||
|
||||
|
Reference in New Issue
Block a user