Skip to main content
Module

x/ts_morph/ts_morph.d.ts>LanguageService#organizeImports

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

Gets the file text changes for organizing the imports in a source file.

Parameters

sourceFile: SourceFile
  • Source file.
optional
formatSettings: FormatCodeSettings
  • Format code settings.
optional
userPreferences: UserPreferences
  • User preferences for refactoring.

Gets the file text changes for organizing the imports in a source file.

Parameters

filePath: string
  • File path of the source file.
optional
formatSettings: FormatCodeSettings
  • Format code settings.
optional
userPreferences: UserPreferences
  • User preferences for refactoring.