Galooshi/import-js

`export interface` not supported in Flow

Aperta

#494 aperta il 10 apr 2018

 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (70 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (519 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor