eslint-plugin-import: using "export interface" produces import/named error
Declaration code:
export interface SourceInterface {
search (query: string): Promise<SearchResultsType>
}
Import code:
import type {
SearchResultsType,
SourceInterface
} from './types';
Error:
/Users/gajus/Documents/[..]/src/sources/TestSource.js
4:3 error SourceInterface not found in '../types' import/named
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 19 (13 by maintainers)
Invalid issue.
May I ask why it is invalid?
@gajus can you elaborate on why you thought the issue was invalid?