Module

x/ts_morph/ts_morph.d.ts>ImportDeclaration#insertNamedImports

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
method ImportDeclaration.prototype.insertNamedImports
import { ImportDeclaration } from "https://dotland.deno.dev/x/ts_morph@22.0.0/ts_morph.d.ts";

Inserts named imports into the import declaration.

Parameters

index: number
  • Child index to insert at.
namedImports: ReadonlyArray<OptionalKind<ImportSpecifierStructure> | string | WriterFunction> | WriterFunction
  • Structures, names, or writer function to write the named import with.