Galooshi/import-js

`export interface` not supported in Flow

Open

#494 geöffnet am 10. Apr. 2018

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (519 Stars) (70 Forks)batch import
enhancementhelp wanted

Beschreibung

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