Galooshi/import-js

`export interface` not supported in Flow

Aberta

#494 aberto em 10 de abr. de 2018

 (1 comentário) (0 reação) (0 responsável)JavaScript (70 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (519 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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

Guia do colaborador