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

Function needsTypeOnly

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

Source from the content-addressed store, hash-verified

153866 return "import(".concat(quote).concat(moduleSpecifier).concat(quote, ").");
153867 }
153868 function needsTypeOnly(_a) {
153869 var addAsTypeOnly = _a.addAsTypeOnly;
153870 return addAsTypeOnly === 2 /* AddAsTypeOnly.Required */;
153871 }
153872 function getNewImports(moduleSpecifier, quotePreference, defaultImport, namedImports, namespaceLikeImport) {
153873 var quotedModuleSpecifier = ts.makeStringLiteral(moduleSpecifier, quotePreference);
153874 var statements;

Callers 2

doAddExistingFixFunction · 0.85
getNewImportsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected