I have a JavaScript function that receives some parameters, including object types. However, one property of the parameter that is the object will be used as deprecated. I would like to point out this situation in the documentation, however I don't know how to use the @param tag with @deprecated. Consider the following example:
/** * This function does something. * * @name myFunction * @function * @since 3.0 * @param {function} [onSuccess] success callback * @param {function} [onFailure] failure callback * @param {object} [options] options for function * @param {string} [options.lang] display language * @param {string} [options.type] type of sth */ this.myFunction= function (onSuccess, onFailure, options) { //do something }
I want to invalidate the type property of an options object. How can I do this, or can I?
javascript deprecated jsdoc param
mhmtztmr
source share