bpmn-js
Version:
A bpmn 2.0 toolkit and web modeler
15 lines (13 loc) • 513 B
TypeScript
/**
* Returns true, if an element is from a different type
* than a target definition. Takes into account the type,
* event definition type and triggeredByEvent property.
*
* @param element
*
* @return
*/
export function isDifferentType(element: Element): DifferentTypeValidator;
type Element = import('../../../model/Types').Element;
type PopupMenuTarget = import('diagram-js/lib/features/popup-menu/PopupMenu').PopupMenuTarget;
export type DifferentTypeValidator = (entry: PopupMenuTarget) => boolean;