Galooshi/import-js

`export interface` not supported in Flow

Open

#494 opened on 2018年4月10日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)JavaScript (519 stars) (70 forks)batch import
enhancementhelp wanted

説明

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

コントリビューターガイド