Skip to main content
Module

x/ts_morph/mod.ts>SourceFile#organizeImports

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

Organizes the imports in the file.

WARNING! This will forget all the nodes in the file! It's best to do this after you're all done with the file.

Parameters

optional
formatSettings: FormatCodeSettings
  • Format code settings.
optional
userPreferences: UserPreferences
  • User preferences for refactoring.