Skip to content

Commit

Permalink
fix: correct BaseViewer#saveXML definition
Browse files Browse the repository at this point in the history
Related to #1881
  • Loading branch information
nikku committed Apr 4, 2023
1 parent 466a2ac commit 82aae34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/BaseViewer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export default class BaseViewer extends Diagram {
*
* @return A promise resolving with the XML.
*/
saveXML(options: SaveXMLOptions): Promise<SaveXMLResult>;
saveXML(options?: SaveXMLOptions): Promise<SaveXMLResult>;

/**
* Export the currently displayed BPMN 2.0 diagram as
Expand Down
4 changes: 4 additions & 0 deletions lib/BaseViewer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ export function testViewer(viewer: BaseViewer) {
console.log(error);
});

viewer.saveXML();

viewer.saveSVG();

viewer.getModules();

viewer.clear();
Expand Down

0 comments on commit 82aae34

Please sign in to comment.