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 */
fork icon0
star icon0
watch icon2

+ 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;
fork icon0
star icon0
watch icon1

Other functions in typescript

Sorted by popularity

function icon

typescript.SyntaxKind is the most popular function in typescript (82777 examples)