Auto-Import icon indicating copy to clipboard operation
Auto-Import copied to clipboard

[BUG] typeimport bug when importing on typed files

Open zomars opened this issue 5 years ago • 1 comments

Whenever I try to import something that already has some type imported this happens:

Before import:

import User from '../User';

import type { UserType } from '../User';

After import:

import User from '../User';

import typeimport { otherImport } from '../otherImport'; { UserType } from '../User';

The desired result would be:


import User from '../User';

import type { UserType } from '../User';
import { otherImport } from '../otherImport';

EDIT: I'm using flow BTW.

zomars avatar Aug 15 '19 21:08 zomars

May be related to #86

zomars avatar Aug 15 '19 21:08 zomars