Galooshi/import-js

`export interface` not supported in Flow

Open

#494 opened on Apr 10, 2018

View on GitHub
 (1 comment) (0 reactions) (0 assignees)JavaScript (519 stars) (70 forks)batch import
enhancementhelp wanted

Description

Flow supports export interface, but importjs doesn't pick up on these statements when auto-importing.

A workaround is to use the same workaround as for older Flow versions:

interface iMyInterface { ... }
export type IMyInterface = iMyInterface

It would be nice if import-js supported the shorter export interface... syntax since Flow now supports it.

cf. https://github.com/facebook/flow/issues/1131

Contributor guide