Add accessor to getter and setters
This commit is contained in:
@ -49,7 +49,7 @@ export class Body extends XmlComponent {
|
|||||||
this.root.push(component);
|
this.root.push(component);
|
||||||
}
|
}
|
||||||
|
|
||||||
get DefaultSection(): SectionProperties {
|
public get DefaultSection(): SectionProperties {
|
||||||
return this.defaultSection;
|
return this.defaultSection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ export class SectionProperties extends XmlComponent {
|
|||||||
this.options = mergedOptions;
|
this.options = mergedOptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
get Options(): SectionPropertiesOptions {
|
public get Options(): SectionPropertiesOptions {
|
||||||
return this.options;
|
return this.options;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ export class Document extends XmlComponent {
|
|||||||
return table;
|
return table;
|
||||||
}
|
}
|
||||||
|
|
||||||
get Body(): Body {
|
public get Body(): Body {
|
||||||
return this.body;
|
return this.body;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ export class Header extends XmlComponent {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
get referenceId(): number {
|
public get referenceId(): number {
|
||||||
return this.refId;
|
return this.refId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ export class LevelOverride extends XmlComponent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
get level(): LevelForOverride {
|
public get level(): LevelForOverride {
|
||||||
let lvl: LevelForOverride;
|
let lvl: LevelForOverride;
|
||||||
if (!this.lvl) {
|
if (!this.lvl) {
|
||||||
lvl = new LevelForOverride(this.levelNum);
|
lvl = new LevelForOverride(this.levelNum);
|
||||||
|
@ -138,7 +138,7 @@ export class TableCell extends XmlComponent {
|
|||||||
return para;
|
return para;
|
||||||
}
|
}
|
||||||
|
|
||||||
get cellProperties(): TableCellProperties {
|
public get cellProperties(): TableCellProperties {
|
||||||
return this.properties;
|
return this.properties;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -151,7 +151,7 @@ export class TableCellProperties extends XmlComponent {
|
|||||||
this.root.push(this.cellBorder);
|
this.root.push(this.cellBorder);
|
||||||
}
|
}
|
||||||
|
|
||||||
get borders(): TableCellBorders {
|
public get borders(): TableCellBorders {
|
||||||
return this.cellBorder;
|
return this.cellBorder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,7 +11,8 @@
|
|||||||
],
|
],
|
||||||
"no-require-imports": true,
|
"no-require-imports": true,
|
||||||
"member-access": [
|
"member-access": [
|
||||||
true
|
true,
|
||||||
|
"check-accessor"
|
||||||
],
|
],
|
||||||
"indent": [
|
"indent": [
|
||||||
true,
|
true,
|
||||||
|
Reference in New Issue
Block a user