False unused import

When importing

import * as A from 'fp-ts/ReadonlyArray'

If you add code with generic that uses A, it marks the import as unused

const myExampleFunc = <A>(a: A) => A.of(a)

When running optimize imports, the above import line will be removed because the generic type has the same name as the import alias. Is there a way to fix this without changing the generic type and the import alias name?

Please sign in to leave a comment.