Skip to content

Imported custom types are removed erroneously #53

@dannyb21892

Description

@dannyb21892

I have a custom type exported from another file and imported into a service. I set the types of certain variables and function returns in the service, however the "fix all imports" command still removes my imported types. My code is similar to the following:

import { MyType1, MyType2} from './custom-types';

...

getData = (): Observable<MyType1> => {
  let myVariable: MyType2;
...
}

And the import statement is removed despite the types being used in the rest of the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions