Add accessor to getter and setters

This commit is contained in:
Dolan
2018-08-03 02:29:58 +01:00
parent b7a4ca9c3b
commit efe7d594b0
7 changed files with 10 additions and 9 deletions

View File

@ -49,7 +49,7 @@ export class Body extends XmlComponent {
this.root.push(component);
}
get DefaultSection(): SectionProperties {
public get DefaultSection(): SectionProperties {
return this.defaultSection;
}

View File

@ -86,7 +86,7 @@ export class SectionProperties extends XmlComponent {
this.options = mergedOptions;
}
get Options(): SectionPropertiesOptions {
public get Options(): SectionPropertiesOptions {
return this.options;
}
}

View File

@ -57,7 +57,7 @@ export class Document extends XmlComponent {
return table;
}
get Body(): Body {
public get Body(): Body {
return this.body;
}
}

View File

@ -31,7 +31,7 @@ export class Header extends XmlComponent {
);
}
get referenceId(): number {
public get referenceId(): number {
return this.refId;
}

View File

@ -56,7 +56,7 @@ export class LevelOverride extends XmlComponent {
}
}
get level(): LevelForOverride {
public get level(): LevelForOverride {
let lvl: LevelForOverride;
if (!this.lvl) {
lvl = new LevelForOverride(this.levelNum);

View File

@ -138,7 +138,7 @@ export class TableCell extends XmlComponent {
return para;
}
get cellProperties(): TableCellProperties {
public get cellProperties(): TableCellProperties {
return this.properties;
}
}
@ -151,7 +151,7 @@ export class TableCellProperties extends XmlComponent {
this.root.push(this.cellBorder);
}
get borders(): TableCellBorders {
public get borders(): TableCellBorders {
return this.cellBorder;
}

View File

@ -11,7 +11,8 @@
],
"no-require-imports": true,
"member-access": [
true
true,
"check-accessor"
],
"indent": [
true,
@ -37,4 +38,4 @@
"no-implicit-dependencies": false,
"no-submodule-imports": false
}
}
}