Galooshi/import-js

`export interface` not supported in Flow

Open

#494 创建于 2018年4月10日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)JavaScript (519 star) (70 fork)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

贡献者指南