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

@ -1,10 +1,8 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IRelationshipsAttributesProperties {
export class RelationshipsAttributes extends XmlAttributeComponent<{
readonly xmlns: string;
}
export class RelationshipsAttributes extends XmlAttributeComponent<IRelationshipsAttributesProperties> {
}> {
protected readonly xmlKeys = {
xmlns: "xmlns",
};

View File

@ -1,13 +1,11 @@
import { XmlAttributeComponent } from "file/xml-components";
export interface IRelationshipAttributesProperties {
export class RelationshipAttributes extends XmlAttributeComponent<{
readonly id: string;
readonly type: string;
readonly target: string;
readonly targetMode?: string;
}
export class RelationshipAttributes extends XmlAttributeComponent<IRelationshipAttributesProperties> {
}> {
protected readonly xmlKeys = {
id: "Id",
type: "Type",