mirror of
https://github.com/bpmn-io/bpmn-js.git
synced 2025-08-26 12:40:20 +08:00
chore: fix util JSDocs
This commit is contained in:
@ -3,6 +3,10 @@ import {
|
||||
isFunction
|
||||
} from 'min-dash';
|
||||
|
||||
/**
|
||||
* @typedef {import('../model/Types').ModdleElement} ModdleElement
|
||||
*/
|
||||
|
||||
// TODO(nikku): remove with future bpmn-js version
|
||||
|
||||
/**
|
||||
@ -12,6 +16,10 @@ import {
|
||||
* 2) If Promise class is implemented in current environment.
|
||||
*
|
||||
* @private
|
||||
*
|
||||
* @param {Function} api
|
||||
*
|
||||
* @return {Function}
|
||||
*/
|
||||
export function wrapForCompatibility(api) {
|
||||
|
||||
@ -60,6 +68,11 @@ export function wrapForCompatibility(api) {
|
||||
|
||||
var DI_ERROR_MESSAGE = 'Tried to access di from the businessObject. The di is available through the diagram element only. For more information, see https://github.com/bpmn-io/bpmn-js/issues/1472';
|
||||
|
||||
/**
|
||||
* @private
|
||||
*
|
||||
* @param {ModdleElement} businessObject
|
||||
*/
|
||||
export function ensureCompatDiRef(businessObject) {
|
||||
|
||||
// bpmnElement can have multiple independent DIs
|
||||
|
Reference in New Issue
Block a user