tslinting

This commit is contained in:
Dolan
2017-03-08 20:32:30 +00:00
parent f6eb412357
commit 03b34915c6
6 changed files with 22 additions and 22 deletions

View File

@ -1,8 +1,8 @@
import {XmlComponent} from "../xml-components"; import { XmlComponent } from "../xml-components";
export class Break extends XmlComponent { export class Break extends XmlComponent {
constructor() { constructor() {
super("w:br"); super("w:br");
} }
} }

View File

@ -1,4 +1,4 @@
import {XmlComponent} from "../xml-components"; import { XmlComponent } from "../xml-components";
export class SmallCaps extends XmlComponent { export class SmallCaps extends XmlComponent {

View File

@ -1,11 +1,11 @@
import {XmlComponent, Attributes} from "../xml-components"; import { Attributes, XmlComponent } from "../xml-components";
export class Bold extends XmlComponent { export class Bold extends XmlComponent {
constructor() { constructor() {
super("w:b"); super("w:b");
this.root.push(new Attributes({ this.root.push(new Attributes({
val: true val: true,
})); }));
} }
} }
@ -15,7 +15,7 @@ export class Italics extends XmlComponent {
constructor() { constructor() {
super("w:i"); super("w:i");
this.root.push(new Attributes({ this.root.push(new Attributes({
val: true val: true,
})); }));
} }
} }
@ -25,7 +25,7 @@ export class Caps extends XmlComponent {
constructor() { constructor() {
super("w:caps"); super("w:caps");
this.root.push(new Attributes({ this.root.push(new Attributes({
val: true val: true,
})); }));
} }
} }
@ -35,7 +35,7 @@ export class Color extends XmlComponent {
constructor(color: string) { constructor(color: string) {
super("w:color"); super("w:color");
this.root.push(new Attributes({ this.root.push(new Attributes({
val: color val: color,
})); }));
} }
} }
@ -45,7 +45,7 @@ export class DoubleStrike extends XmlComponent {
constructor() { constructor() {
super("w:dstrike"); super("w:dstrike");
this.root.push(new Attributes({ this.root.push(new Attributes({
val: true val: true,
})); }));
} }
} }
@ -55,7 +55,7 @@ export class Emboss extends XmlComponent {
constructor() { constructor() {
super("w:emboss"); super("w:emboss");
this.root.push(new Attributes({ this.root.push(new Attributes({
val: true val: true,
})); }));
} }
} }
@ -65,7 +65,7 @@ export class Imprint extends XmlComponent {
constructor() { constructor() {
super("w:imprint"); super("w:imprint");
this.root.push(new Attributes({ this.root.push(new Attributes({
val: true val: true,
})); }));
} }
} }
@ -75,7 +75,7 @@ export class Shadow extends XmlComponent {
constructor() { constructor() {
super("w:shadow"); super("w:shadow");
this.root.push(new Attributes({ this.root.push(new Attributes({
val: true val: true,
})); }));
} }
} }
@ -85,7 +85,7 @@ export class SmallCaps extends XmlComponent {
constructor() { constructor() {
super("w:smallCaps"); super("w:smallCaps");
this.root.push(new Attributes({ this.root.push(new Attributes({
val: true val: true,
})); }));
} }
} }
@ -95,7 +95,7 @@ export class Strike extends XmlComponent {
constructor() { constructor() {
super("w:strike"); super("w:strike");
this.root.push(new Attributes({ this.root.push(new Attributes({
val: true val: true,
})); }));
} }
} }
@ -105,7 +105,7 @@ export class Size extends XmlComponent {
constructor(size: number) { constructor(size: number) {
super("w:sz"); super("w:sz");
this.root.push(new Attributes({ this.root.push(new Attributes({
val: size val: size,
})); }));
} }
} }

View File

@ -1,4 +1,4 @@
import {XmlComponent} from "../xml-components"; import { XmlComponent } from "../xml-components";
export class RunProperties extends XmlComponent { export class RunProperties extends XmlComponent {
@ -6,7 +6,7 @@ export class RunProperties extends XmlComponent {
super("w:rPr"); super("w:rPr");
} }
push(item: XmlComponent): void { public push(item: XmlComponent): void {
this.root.push(item); this.root.push(item);
} }
} }

View File

@ -1,4 +1,4 @@
import {XmlAttributeComponent, XmlComponent} from "../xml-components"; import { XmlAttributeComponent, XmlComponent } from "../xml-components";
interface IRunFontAttributesProperties { interface IRunFontAttributesProperties {
ascii: string; ascii: string;

View File

@ -1,11 +1,11 @@
import {XmlComponent, Attributes} from "../xml-components"; import { Attributes, XmlComponent } from "../xml-components";
abstract class VerticalAlign extends XmlComponent { abstract class VerticalAlign extends XmlComponent {
constructor(type: string) { constructor(type: string) {
super("w:vertAlign"); super("w:vertAlign");
this.root.push(new Attributes({ this.root.push(new Attributes({
val: type val: type,
})); }));
} }
} }
@ -22,4 +22,4 @@ export class SubScript extends VerticalAlign {
constructor() { constructor() {
super("subscript"); super("subscript");
} }
} }