MCPcopy Create free account
hub / github.com/nodejs/node / isImportable

Function isImportable

test/fixtures/snapshot/typescript.js:153175–153178  ·  view source on GitHub ↗
(program, moduleFile, isFromPackageJson)

Source from the content-addressed store, hash-verified

153173 });
153174 return result;
153175 function isImportable(program, moduleFile, isFromPackageJson) {
153176 var _a;
153177 return !moduleFile || ts.isImportableFile(program, importingFile, moduleFile, preferences, /*packageJsonFilter*/ undefined, getModuleSpecifierResolutionHost(isFromPackageJson), (_a = host.getModuleSpecifierCache) === null || _a === void 0 ? void 0 : _a.call(host));
153178 }
153179 }
153180 function getImportFixes(exportInfos, useNamespaceInfo,
153181 /** undefined only for missing JSX namespace */

Callers 1

getAllReExportingModulesFunction · 0.85

Calls 1

callMethod · 0.45

Tested by

no test coverage detected