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

Function resolvedTypeScriptOnly

test/fixtures/snapshot/typescript.js:42373–42379  ·  view source on GitHub ↗

Used with `Extensions.DtsOnly` to extract the path from TypeScript results.

(resolved)

Source from the content-addressed store, hash-verified

42371 })(Extensions || (Extensions = {}));
42372 /** Used with `Extensions.DtsOnly` to extract the path from TypeScript results. */
42373 function resolvedTypeScriptOnly(resolved) {
42374 if (!resolved) {
42375 return undefined;
42376 }
42377 ts.Debug.assert(ts.extensionIsTS(resolved.extension));
42378 return { fileName: resolved.path, packageId: resolved.packageId };
42379 }
42380 function createResolvedModuleWithFailedLookupLocations(resolved, isExternalLibraryImport, failedLookupLocations, diagnostics, resultFromCache) {
42381 var _a;
42382 if (resultFromCache) {

Callers 2

primaryLookupFunction · 0.85
secondaryLookupFunction · 0.85

Calls 1

assertMethod · 0.80

Tested by

no test coverage detected