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

貢獻者指南

`export interface` not supported in Flow · Galooshi/import-js#494 | Good First Issue