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.
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:
And the import statement is removed despite the types being used in the rest of the code.