Galooshi/import-js

`export interface` not supported in Flow

Ouverte

#494 ouverte le 10 avr. 2018

 (1 commentaire) (0 réaction) (0 personne assignée)JavaScript (70 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (519 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur