Skip to main content
Module

x/ts_morph/mod.ts>ImportDeclaration#renameDefaultImport

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

Renames or sets the provided default import.

Parameters

text: string
  • Text to set or rename the default import with.