Skip to main content
Module

x/ts_morph/mod.ts>ModuleDeclaration#rename

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

Renames the module name.

Note: The TS compiler does not update module declarations for string literal module names unfortunately.

Parameters

newName: string
  • New name.
optional
options: RenameOptions
  • Options for renaming.