Make WordPress Core


Ignore:
Timestamp:
09/11/2026 06:29:08 AM (6 hours ago)
Author:
afercia
Message:

General: Enable the JSDoc rule require-param-description.

Enables the JSDoc rule require-param-description and fixes all the reported violations.
Part of the effort to improve JS inline documentation for 7.2.

Developed in https://github.com/WordPress/wordpress-develop/pull/13475

Props afercia, westonruter.
See #66033.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/media/controllers/state-machine.js

    r63516 r63598  
    3636         * @since 3.5.0
    3737         *
    38          * @param {string} id
     38         * @param {string} id The ID of the state to fetch. If omitted, the active state is returned.
    3939         * @return {wp.media.controller.State} Returns a State model from
    4040         *                                     the StateMachine collection.
     
    6161         * @since 3.5.0
    6262         *
    63          * @param {string} id
     63         * @param {string} id The ID of the state to set as active.
    6464         *
    6565         * @fires wp.media.controller.State#deactivate
Note: See TracChangeset for help on using the changeset viewer.