Inline single use interfaces

This commit is contained in:
Dolan
2021-03-15 00:11:39 +00:00
parent 18ce200cdb
commit a3febae8a3
42 changed files with 91 additions and 181 deletions

View File

@ -6,12 +6,10 @@ export enum FooterReferenceType {
EVEN = "even",
}
export interface IFooterReferenceAttributes {
export class FooterReferenceAttributes extends XmlAttributeComponent<{
readonly type: string;
readonly id: string;
}
export class FooterReferenceAttributes extends XmlAttributeComponent<IFooterReferenceAttributes> {
}> {
protected readonly xmlKeys = {
type: "w:type",
id: "r:id",

View File

@ -6,12 +6,10 @@ export enum HeaderReferenceType {
EVEN = "even",
}
export interface IHeaderReferenceAttributes {
export class HeaderReferenceAttributes extends XmlAttributeComponent<{
readonly type: string;
readonly id: string;
}
export class HeaderReferenceAttributes extends XmlAttributeComponent<IHeaderReferenceAttributes> {
}> {
protected readonly xmlKeys = {
type: "w:type",
id: "r:id",

View File

@ -1,10 +1,8 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IHeaderReferenceAttributes {
export class TitlePageAttributes extends XmlAttributeComponent<{
readonly value: string;
}
export class TitlePageAttributes extends XmlAttributeComponent<IHeaderReferenceAttributes> {
}> {
protected readonly xmlKeys = {
value: "w:val",
};