bpmn-io / diagram-js

A toolbox for displaying and modifying diagrams on the web.
MIT License
1.69k stars 419 forks source link

chore: document some arguments as optional #873

Closed makepanic closed 6 months ago

makepanic commented 6 months ago

Hi,

we're in the process of upgrading from our own typedefs to the official diagram-js ones and found some cases where arguments are theoretically optional but documented as required in the jsdoc.

This PR adjusts the cases we noticed our build complaining. The changes are usually where the argument is consumed with a fallback value in the javascript code, e.g. argument || {}.

If you expect these arguments not to be optional in the generated types, I can also close the PR.

Thanks

nikku commented 6 months ago

Released with v14.2.0