Skip to content

Commit

Permalink
fix(ModelingUtil): fix JSDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
philippfromme committed Apr 6, 2023
1 parent 6601166 commit 1800917
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions lib/features/modeling/util/ModelingUtil.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
import { isString } from 'min-dash';

export { is, isAny } from '../../../util/ModelUtil';

import { isAny } from '../../../util/ModelUtil';

/**
* @typedef {import('../../../model/Types').BpmnElement} BpmnElement
*/

/**
* Return the parent of the element with any of the given types.
*
* @param {djs.model.Base} element
* @param {string|Array<string>} anyType
* @param {BpmnElement} element
* @param {string|string[]} anyType
*
* @return {djs.model.Base}
* @return {BpmnElement|null}
*/
export function getParent(element, anyType) {

if (typeof anyType === 'string') {
if (isString(anyType)) {
anyType = [ anyType ];
}

Expand Down

0 comments on commit 1800917

Please sign in to comment.