Skip to main content

Module import_bindings

Module import_bindings 

Source
Expand description

The import declarations of a file, and how often the code refers to each imported name.

fallow fix removes a name from an export { ... } list. When that name came from an import that nothing else in the file uses, the fix must also remove the import. A kept import still counts as a consumer for the type checker, but not for the analysis, so the next fix run would remove the export that the import needs.

Structs§

FileImportBindings
The import declarations of a file and the references to their names.
ImportBinding
One local binding of an import declaration.
ImportDeclarationBindings
One top-level import declaration with at least one binding.

Enums§

ImportBindingKind
The form of one binding of an import declaration.

Functions§

import_bindings
The import bindings of the JavaScript or TypeScript file at path.