Skip to content

Commit

Permalink
types(site): fix jsdoc types in docs script
Browse files Browse the repository at this point in the history
  • Loading branch information
serhalp committed Feb 4, 2025
1 parent 6aa83f2 commit ad03c5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/scripts/util/generate-command-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { sortOptions } from '../../../dist/utils/command-helpers.js'

const program = createMainCommand()

/** @type {Array<import('../../src/commands/base-command.js').default>} */
/** @type {Array<import('../../../src/commands/base-command.js').default>} */
// @ts-ignore typecast needed
const commands = program.commands.sort((cmdA, cmdB) => cmdA.name().localeCompare(cmdB.name()))

/**
*
* @param {import('../../src/commands/base-command.js').default} command
* @param {import('../../../src/commands/base-command.js').default} command
*/
const parseCommand = function (command) {
const args = command._args.map(({ _name: name, description }) => ({
Expand Down

0 comments on commit ad03c5f

Please sign in to comment.