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

Function needAllowJs

test/fixtures/snapshot/typescript.js:119506–119508  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119504 return options.jsx ? undefined : ts.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set;
119505 }
119506 function needAllowJs() {
119507 return ts.getAllowJSCompilerOption(options) || !ts.getStrictOptionValue(options, "noImplicitAny") ? undefined : ts.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type;
119508 }
119509 function needResolveJsonModule() {
119510 return options.resolveJsonModule ? undefined : ts.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used;
119511 }

Callers 1

getResolutionDiagnosticFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected