Skip to content

using "export interface" produces import/named error #726

@gajus

Description

@gajus

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions