How to use the isNamedImports function from typescript
Find comprehensive JavaScript typescript.isNamedImports code examples handpicked from public code repositorys.
254 255 256 257 258 259 260 261 262 263
if (!containsReExport) return; const namedImports = importNodeTs.importClause && importNodeTs.importClause.namedBindings && ts.isNamedImports(importNodeTs.importClause.namedBindings) ? importNodeTs.importClause.namedBindings.elements : []; /** @param {import("eslint").Rule.RuleFixer} fixer */
0
0
2
+ 19 other calls in file
446 447 448 449 450 451 452 453 454 455
var _a, _b; if (ts.isImportDeclaration(child) && child.moduleSpecifier && ts.isStringLiteral(child.moduleSpecifier) && child.moduleSpecifier.text === 'tslib' && ((_a = child.importClause) === null || _a === void 0 ? void 0 : _a.namedBindings) && ts.isNamedImports((_b = child.importClause) === null || _b === void 0 ? void 0 : _b.namedBindings)) { imports.push(child.importClause.namedBindings); } }); return imports;
0
0
1
typescript.SyntaxKind is the most popular function in typescript (82777 examples)