Fix type check issues

This commit is contained in:
Reinier Criel 2025-11-03 07:13:36 -08:00
parent 3d98bb5084
commit a2fb94d0f0
8 changed files with 60 additions and 4 deletions

View file

@ -2,6 +2,9 @@ export const pipInstallCommand = "install";
export const pipDownloadCommand = "download";
export const pipWheelCommand = "wheel";
/**
* @param {string[]} args
*/
export function getPipCommandForArgs(args) {
if (!args || args.length === 0) {
return null;
@ -17,6 +20,9 @@ export function getPipCommandForArgs(args) {
return null;
}
/**
* @param {string[]} args
*/
export function hasDryRunArg(args) {
return args.some((arg) => arg === "--dry-run");
return args.some(/** @param {string} arg */ (arg) => arg === "--dry-run");
}