Skip to content

False positives when importing from flow-typed module declarations #708

@dlindenkreuz

Description

@dlindenkreuz

Explicit imports from flow-typed module declarations seem to yield false positives.

Example:

import type { ActionCreators } from "redux"
// error  ActionCreators not found in 'redux'  import/named

The error should not appear because flow can attach declared types to named modules via flow-typed or other library files, even if the modules themselves do not export those types. In the example above, redux does not export any types. Instead, a flow-typed library handles the type declarations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions