Use context in prep xml
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
import { IViewWrapper } from "file/document-wrapper";
|
||||
import { BaseXmlComponent, IXmlableObject } from "file/xml-components";
|
||||
import { BaseXmlComponent, IContext, IXmlableObject } from "file/xml-components";
|
||||
|
||||
export class Formatter {
|
||||
public format(input: BaseXmlComponent, file?: IViewWrapper): IXmlableObject {
|
||||
const output = input.prepForXml(file);
|
||||
// tslint:disable-next-line: no-object-literal-type-assertion
|
||||
public format(input: BaseXmlComponent, context: IContext = {} as IContext): IXmlableObject {
|
||||
const output = input.prepForXml(context);
|
||||
|
||||
if (output) {
|
||||
return output;
|
||||
|
Reference in New Issue
Block a user