Update typescript dep to v5.4.2, other dependencies (#57664)

This commit is contained in:
Jake Bailey
2024-03-06 12:29:01 -08:00
committed by GitHub
parent 353ccb7688
commit 3a0869fd97
3 changed files with 190 additions and 189 deletions

View File

@@ -3509,7 +3509,7 @@ export function convertJsonOption(
convertJsonOption(opt.element, value, basePath, errors, propertyAssignment, valueExpression, sourceFile);
}
else if (!isString(opt.type)) {
return convertJsonOptionOfCustomType(opt as CommandLineOptionOfCustomType, value as string, errors, valueExpression, sourceFile);
return convertJsonOptionOfCustomType(opt, value as string, errors, valueExpression, sourceFile);
}
const validatedValue = validateJsonOptionValue(opt, value, errors, valueExpression, sourceFile);
return isNullOrUndefined(validatedValue) ? validatedValue : normalizeNonListOptionValue(opt, basePath, validatedValue);