Importer.d.ts 640 B

12345678910111213141516171819202122232425
  1. /**
  2. * Import the definitions into a diagram.
  3. *
  4. * Errors and warnings are reported through the specified callback.
  5. *
  6. * @param diagram
  7. * @param definitions
  8. * @param bpmnDiagram The diagram to be rendered (if not
  9. * provided, the first one will be rendered).
  10. *
  11. * @return
  12. */
  13. export function importBpmnDiagram(
  14. diagram: ModdleElement,
  15. definitions: ModdleElement,
  16. bpmnDiagram?: ModdleElement
  17. ): Promise<ImportBPMNDiagramResult>;
  18. type ModdleElement = import('../model/Types').ModdleElement;
  19. export type ImportBPMNDiagramResult = {
  20. warnings: string[];
  21. };
  22. export type ImportBPMNDiagramError = ImportBPMNDiagramResult & Error;