Make fields readonly

This commit is contained in:
Dolan
2018-01-29 01:55:25 +00:00
parent 3fe0c76d54
commit 079334f71b
11 changed files with 28 additions and 27 deletions

View File

@ -3,8 +3,8 @@ import { ParagraphPropertiesDefaults } from "./paragraph-properties";
import { RunPropertiesDefaults } from "./run-properties";
export class DocumentDefaults extends XmlComponent {
private runPropertiesDefaults: RunPropertiesDefaults;
private paragraphPropertiesDefaults: ParagraphPropertiesDefaults;
private readonly runPropertiesDefaults: RunPropertiesDefaults;
private readonly paragraphPropertiesDefaults: ParagraphPropertiesDefaults;
constructor() {
super("w:docDefaults");

View File

@ -4,7 +4,7 @@ import { RunProperties } from "../../paragraph/run/properties";
import { RunFonts } from "../../paragraph/run/run-fonts";
export class RunPropertiesDefaults extends XmlComponent {
private properties: RunProperties;
private readonly properties: RunProperties;
constructor() {
super("w:rPrDefault");

View File

@ -36,8 +36,8 @@ export class Style extends XmlComponent {
}
export class ParagraphStyle extends Style {
private paragraphProperties: paragraph.ParagraphProperties;
private runProperties: RunProperties;
private readonly paragraphProperties: paragraph.ParagraphProperties;
private readonly runProperties: RunProperties;
constructor(styleId: string, name?: string) {
super({ type: "paragraph", styleId: styleId }, name);