You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.