Skip to main content
Module

x/ts_morph/mod.ts>SourceFile#fixMissingImports

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

Code fix to add import declarations for identifiers that are referenced, but not imported in the source file.

Parameters

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