import-js/eslint-plugin-import

Re-export of a opaque flow type fails

Open

#1348 aperta il 30 apr 2019

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)JavaScript (1540 fork)batch import
bugflowhelp wanted

Metriche repository

Star
 (4946 star)
Metriche merge PR
 (Merge medio 138g 22h) (3 PR mergiate in 30 g)

Descrizione

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.

Guida contributor