fix: correct BaseViewer#saveXML definition

Related to https://github.com/bpmn-io/bpmn-js/pull/1881
This commit is contained in:
Nico Rehwaldt
2023-04-04 14:26:07 +02:00
committed by Nico Rehwaldt
parent 3de7c6d075
commit f6cd4784b0
2 changed files with 5 additions and 1 deletions

2
lib/BaseViewer.d.ts vendored
View File

@ -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

View File

@ -89,6 +89,10 @@ export function testViewer(viewer: BaseViewer) {
console.log(error);
});
viewer.saveXML();
viewer.saveSVG();
viewer.getModules();
viewer.clear();