From 0f3495da73faa0dea22c100d85cbed9cf209cdda Mon Sep 17 00:00:00 2001 From: shail-mehta Date: Tue, 11 Feb 2025 20:15:43 +0530 Subject: [PATCH] Changed Inline Documentation Order --- packages/i18n/src/sprintf.js | 4 ++-- packages/token-list/src/index.ts | 3 ++- packages/widgets/src/index.js | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/i18n/src/sprintf.js b/packages/i18n/src/sprintf.js index 550248a81c9e9e..789fbbcc456bea 100644 --- a/packages/i18n/src/sprintf.js +++ b/packages/i18n/src/sprintf.js @@ -17,11 +17,11 @@ const logErrorOnce = memoize( console.error ); // eslint-disable-line no-console * Returns a formatted string. If an error occurs in applying the format, the * original format string is returned. * + * @see https://www.npmjs.com/package/sprintf-js + * * @param {string} format The format of the string to generate. * @param {...*} args Arguments to apply to the format. * - * @see https://www.npmjs.com/package/sprintf-js - * * @return {string} The formatted string. */ export function sprintf( format, ...args ) { diff --git a/packages/token-list/src/index.ts b/packages/token-list/src/index.ts index 744afe54eb4928..c26351ef082662 100644 --- a/packages/token-list/src/index.ts +++ b/packages/token-list/src/index.ts @@ -200,9 +200,10 @@ export default class TokenList { * * Always returns `true` in this implementation. * - * @param _token * @see https://dom.spec.whatwg.org/#dom-domtokenlist-supports * + * @param _token + * * @return Whether token is supported. */ supports( _token: string ): boolean { diff --git a/packages/widgets/src/index.js b/packages/widgets/src/index.js index 9520943bcae873..86e0701314a4e4 100644 --- a/packages/widgets/src/index.js +++ b/packages/widgets/src/index.js @@ -18,8 +18,9 @@ export * from './utils'; * Note that for the block to be useful, any scripts required by a widget must * be loaded into the page. * - * @param {Object} supports Block support settings. * @see https://developer.wordpress.org/block-editor/how-to-guides/widgets/legacy-widget-block/ + * + * @param {Object} supports Block support settings. */ export function registerLegacyWidgetBlock( supports = {} ) { const { metadata, settings, name } = legacyWidget;