MCPcopy Index your code
hub / github.com/nodejs/node / validateJsonOptionValue

Function validateJsonOptionValue

test/fixtures/snapshot/typescript.js:41930–41939  ·  view source on GitHub ↗
(opt, value, errors)

Source from the content-addressed store, hash-verified

41928 return value;
41929 }
41930 function validateJsonOptionValue(opt, value, errors) {
41931 var _a;
41932 if (isNullOrUndefined(value))
41933 return undefined;
41934 var d = (_a = opt.extraValidation) === null || _a === void 0 ? void 0 : _a.call(opt, value);
41935 if (!d)
41936 return value;
41937 errors.push(ts.createCompilerDiagnostic.apply(void 0, d));
41938 return undefined;
41939 }
41940 function convertJsonOptionOfCustomType(opt, value, errors) {
41941 if (isNullOrUndefined(value))
41942 return undefined;

Callers 4

parseListTypeOptionFunction · 0.85
parseOptionValueFunction · 0.85
convertJsonOptionFunction · 0.85

Calls 4

isNullOrUndefinedFunction · 0.85
callMethod · 0.45
pushMethod · 0.45
applyMethod · 0.45

Tested by

no test coverage detected