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

Function usesJsExtensionOnImports

test/fixtures/snapshot/typescript.js:122201–122207  ·  view source on GitHub ↗
(_a)

Source from the content-addressed store, hash-verified

122199 }
122200 moduleSpecifiers_1.countPathComponents = countPathComponents;
122201 function usesJsExtensionOnImports(_a) {
122202 var imports = _a.imports;
122203 return ts.firstDefined(imports, function (_a) {
122204 var text = _a.text;
122205 return ts.pathIsRelative(text) ? ts.hasJSFileExtension(text) : undefined;
122206 }) || false;
122207 }
122208 function comparePathsByRedirectAndNumberOfDirectorySeparators(a, b) {
122209 return ts.compareBooleans(b.isRedirect, a.isRedirect) || ts.compareNumberOfDirectorySeparators(a.path, b.path);
122210 }

Callers 1

getEndingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected