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

Function isExclusivelyTypeOnlyImportOrExport

test/fixtures/snapshot/typescript.js:116212–116221  ·  view source on GitHub ↗
(decl)

Source from the content-addressed store, hash-verified

116210 ts.getModeForResolutionAtIndex = getModeForResolutionAtIndex;
116211 /* @internal */
116212 function isExclusivelyTypeOnlyImportOrExport(decl) {
116213 var _a;
116214 if (ts.isExportDeclaration(decl)) {
116215 return decl.isTypeOnly;
116216 }
116217 if ((_a = decl.importClause) === null || _a === void 0 ? void 0 : _a.isTypeOnly) {
116218 return true;
116219 }
116220 return false;
116221 }
116222 ts.isExclusivelyTypeOnlyImportOrExport = isExclusivelyTypeOnlyImportOrExport;
116223 /**
116224 * Calculates the final resolution mode for a given module reference node. This is generally the explicitly provided resolution mode, if

Callers 1

getModeForUsageLocationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected