import-js/eslint-plugin-import

Re-export of a opaque flow type fails

Open

#1,348 opened on 2019年4月30日

GitHub で見る
 (3 comments) (0 reactions) (0 assignees)JavaScript (1,540 forks)batch import
bugflowhelp wanted

Repository metrics

Stars
 (4,946 stars)
PR merge metrics
 (平均マージ 138d 22h) (30d で 3 merged PRs)

説明

With the following setup, there is an error in file-b:

file-a.js export opaque type Foo: string = string;

file-b.js export type { Foo } from './file-a';

However if the code in file-b.js is written differently (see below), it works fine.

file-b.js import type { Foo } from './file-a'; export type { Foo };

Hence I think this is a bug.

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