modified git ignore
This commit is contained in:
45
build/file/xml-components/attributes.d.ts
vendored
Normal file
45
build/file/xml-components/attributes.d.ts
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
import { XmlAttributeComponent } from "./default-attributes";
|
||||
export interface IAttributesProperties {
|
||||
val?: string | number | boolean;
|
||||
color?: string;
|
||||
space?: string;
|
||||
sz?: string;
|
||||
type?: string;
|
||||
rsidR?: string;
|
||||
rsidRPr?: string;
|
||||
rsidSect?: string;
|
||||
w?: string;
|
||||
h?: string;
|
||||
top?: string;
|
||||
right?: string;
|
||||
bottom?: string;
|
||||
left?: string;
|
||||
header?: string;
|
||||
footer?: string;
|
||||
gutter?: string;
|
||||
linePitch?: string;
|
||||
pos?: string | number;
|
||||
}
|
||||
export declare class Attributes extends XmlAttributeComponent<IAttributesProperties> {
|
||||
protected xmlKeys: {
|
||||
val: string;
|
||||
color: string;
|
||||
space: string;
|
||||
sz: string;
|
||||
type: string;
|
||||
rsidR: string;
|
||||
rsidRPr: string;
|
||||
rsidSect: string;
|
||||
w: string;
|
||||
h: string;
|
||||
top: string;
|
||||
right: string;
|
||||
bottom: string;
|
||||
left: string;
|
||||
header: string;
|
||||
footer: string;
|
||||
gutter: string;
|
||||
linePitch: string;
|
||||
pos: string;
|
||||
};
|
||||
}
|
6
build/file/xml-components/base.d.ts
vendored
Normal file
6
build/file/xml-components/base.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
import { IXmlableObject } from "./xmlable-object";
|
||||
export declare abstract class BaseXmlComponent {
|
||||
protected rootKey: string;
|
||||
constructor(rootKey: string);
|
||||
abstract prepForXml(): IXmlableObject;
|
||||
}
|
12
build/file/xml-components/default-attributes.d.ts
vendored
Normal file
12
build/file/xml-components/default-attributes.d.ts
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
import { BaseXmlComponent } from "./base";
|
||||
import { IXmlableObject } from "./xmlable-object";
|
||||
export declare type AttributeMap<T> = {
|
||||
[P in keyof T]: string;
|
||||
};
|
||||
export declare abstract class XmlAttributeComponent<T> extends BaseXmlComponent {
|
||||
protected root: T;
|
||||
protected xmlKeys: AttributeMap<T>;
|
||||
constructor(properties: T);
|
||||
prepForXml(): IXmlableObject;
|
||||
set(properties: T): void;
|
||||
}
|
4
build/file/xml-components/index.d.ts
vendored
Normal file
4
build/file/xml-components/index.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export * from "./xml-component";
|
||||
export * from "./attributes";
|
||||
export * from "./default-attributes";
|
||||
export * from "./xmlable-object";
|
8
build/file/xml-components/xml-component.d.ts
vendored
Normal file
8
build/file/xml-components/xml-component.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
import { BaseXmlComponent } from "./base";
|
||||
import { IXmlableObject } from "./xmlable-object";
|
||||
export { BaseXmlComponent };
|
||||
export declare abstract class XmlComponent extends BaseXmlComponent {
|
||||
protected root: Array<BaseXmlComponent | string>;
|
||||
constructor(rootKey: string);
|
||||
prepForXml(): IXmlableObject;
|
||||
}
|
6
build/file/xml-components/xmlable-object.d.ts
vendored
Normal file
6
build/file/xml-components/xmlable-object.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
export interface IXmlableObject extends Object {
|
||||
_attr?: {
|
||||
[key: string]: string | number | boolean;
|
||||
};
|
||||
}
|
||||
export declare const WORKAROUND3 = "workaround";
|
Reference in New Issue
Block a user