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,6 +1,6 @@
import { XmlAttributeComponent } from "./default-attributes";
export interface IAttributesProperties {
export class Attributes extends XmlAttributeComponent<{
readonly val?: string | number | boolean;
readonly color?: string;
readonly fill?: string;
@ -21,9 +21,7 @@ export interface IAttributesProperties {
readonly gutter?: string;
readonly linePitch?: string;
readonly pos?: string | number; // Little strange. Perhaps it is normal. Need to clarify in the spec.
}
export class Attributes extends XmlAttributeComponent<IAttributesProperties> {
}> {
protected readonly xmlKeys = {
val: "w:val",
color: "w:color",