Made XmlableObject non ambient typings to fix typescript problem

This commit is contained in:
Dolan
2017-07-08 20:45:19 +01:00
parent 6784dc1f3d
commit 8f632d4ecd
7 changed files with 14 additions and 9 deletions

View File

@ -1,4 +1,5 @@
import { BaseXmlComponent } from "./base";
import { IXmlableObject } from "./xmlable-object";
export type AttributeMap<T> = {[P in keyof T]: string};
@ -11,7 +12,7 @@ export abstract class XmlAttributeComponent<T> extends BaseXmlComponent {
this.root = properties;
}
public prepForXml(): XmlableObject {
public prepForXml(): IXmlableObject {
const attrs = {};
Object.keys(this.root).forEach((key) => {
const value = this.root[key];