-
-
Notifications
You must be signed in to change notification settings - Fork 484
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #190 from dolanmiu/feat/more-tests
Introduce some functional programming techniques
- Loading branch information
Showing
108 changed files
with
749 additions
and
659 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { XmlAttributeComponent } from "file/xml-components"; | ||
|
||
export interface IContentTypeAttributes { | ||
xmlns?: string; | ||
readonly xmlns?: string; | ||
} | ||
|
||
export class ContentTypeAttributes extends XmlAttributeComponent<IContentTypeAttributes> { | ||
protected xmlKeys = { | ||
protected readonly xmlKeys = { | ||
xmlns: "xmlns", | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/file/document/body/section-properties/columns/columns-attributes.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { XmlAttributeComponent } from "file/xml-components"; | ||
|
||
export interface IColumnsAttributes { | ||
space?: number; | ||
readonly space?: number; | ||
} | ||
|
||
export class ColumnsAttributes extends XmlAttributeComponent<IColumnsAttributes> { | ||
protected xmlKeys = { | ||
protected readonly xmlKeys = { | ||
space: "w:space", | ||
}; | ||
} |
4 changes: 2 additions & 2 deletions
4
src/file/document/body/section-properties/doc-grid/doc-grid-attributes.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { XmlAttributeComponent } from "file/xml-components"; | ||
|
||
export interface IDocGridAttributesProperties { | ||
linePitch?: number; | ||
readonly linePitch?: number; | ||
} | ||
|
||
export class DocGridAttributes extends XmlAttributeComponent<IDocGridAttributesProperties> { | ||
protected xmlKeys = { | ||
protected readonly xmlKeys = { | ||
linePitch: "w:linePitch", | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 9 additions & 9 deletions
18
src/file/document/body/section-properties/page-margin/page-margin-attributes.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/file/document/body/section-properties/title-page/title-page-attributes.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { XmlAttributeComponent } from "file/xml-components"; | ||
|
||
export interface IHeaderReferenceAttributes { | ||
value: string; | ||
readonly value: string; | ||
} | ||
|
||
export class TitlePageAttributes extends XmlAttributeComponent<IHeaderReferenceAttributes> { | ||
protected xmlKeys = { | ||
protected readonly xmlKeys = { | ||
value: "w:val", | ||
}; | ||
} |
Oops, something went wrong.