Galooshi/import-js

`export interface` not supported in Flow

Offen

#494 geöffnet am 10.04.2018

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (70 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (519 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

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