Make WordPress Core


Ignore:
Timestamp:
09/11/2026 06:29:08 AM (10 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/_enqueues/wp/api.js

    r63514 r63598  
    15471547         * Initialize the wp-api, optionally passing the API root.
    15481548         *
    1549          * @param {Object} [args]
     1549         * @param {Object} [args]               The arguments for initializing the wp-api.
    15501550         * @param {string} [args.nonce]         The nonce. Optional, defaults to wpApiSettings.nonce.
    15511551         * @param {string} [args.apiRoot]       The api root. Optional, defaults to wpApiSettings.root.
Note: See TracChangeset for help on using the changeset viewer.