Enabled declarations in tsconfig to be true

This commit is contained in:
Dolan
2017-07-07 14:31:08 +01:00
parent 2ec171d4a8
commit 97101adb10
16 changed files with 35 additions and 34 deletions

View File

@ -1,14 +1,14 @@
import { XmlAttributeComponent, XmlComponent } from "../xml-components";
type alignmentOptions = "left" | "center" | "right" | "both";
export type AlignmentOptions = "left" | "center" | "right" | "both";
class AlignmentAttributes extends XmlAttributeComponent<{val: alignmentOptions}> {
export class AlignmentAttributes extends XmlAttributeComponent<{val: AlignmentOptions}> {
protected xmlKeys = {val: "w:val"};
}
export class Alignment extends XmlComponent {
constructor(type: alignmentOptions) {
constructor(type: AlignmentOptions) {
super("w:jc");
this.root.push(new AlignmentAttributes({val: type}));
}

View File

@ -1,6 +1,6 @@
import { XmlAttributeComponent, XmlComponent } from "../xml-components";
class TabStop extends XmlComponent {
export class TabStop extends XmlComponent {
constructor(tab: Tab) {
super("w:tabs");
@ -8,15 +8,15 @@ class TabStop extends XmlComponent {
}
}
export type tabOptions = "left" | "right";
export type TabOptions = "left" | "right";
class TabAttributes extends XmlAttributeComponent<{val: tabOptions, pos: string | number}> {
export class TabAttributes extends XmlAttributeComponent<{val: TabOptions, pos: string | number}> {
protected xmlKeys = {val: "w:val", pos: "w:pos"};
}
class Tab extends XmlComponent {
export class Tab extends XmlComponent {
constructor(value: tabOptions, position: string | number) {
constructor(value: TabOptions, position: string | number) {
super("w:tab");
this.root.push(new TabAttributes({
val: value,