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

Function getImportTypePrefix

test/fixtures/snapshot/typescript.js:153864–153867  ·  view source on GitHub ↗
(moduleSpecifier, quotePreference)

Source from the content-addressed store, hash-verified

153862 changes.insertText(sourceFile, position, getImportTypePrefix(moduleSpecifier, quotePreference));
153863 }
153864 function getImportTypePrefix(moduleSpecifier, quotePreference) {
153865 var quote = ts.getQuoteFromPreference(quotePreference);
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 */;

Callers 2

codeActionForFixWorkerFunction · 0.85
addImportTypeFunction · 0.85

Calls 1

concatMethod · 0.80

Tested by

no test coverage detected