Optional parameter annotation in JSDoc

It would be great to have a way of marking a parameter as “Optional” in the JSDoc annotations for a function; this would alleviate the many warnings through the code. By having this as an annotation, it would be easier to determine an actual function being called with incorrect parameters.

Can this be added to Servoy?

Hi,

You can use around the parameter.

@param {String} [myParameter]

Richard

That works so well; thanks. This has cleared up so much :-)