vscode-js-import icon indicating copy to clipboard operation
vscode-js-import copied to clipboard

Support importing flow types

Open romanlv opened this issue 7 years ago • 2 comments

Hi, thanks for building this extension, it is very useful, just one feature is missing

Importing Flow types, e.g.

in actionTypes.js:

export type TRequestAction = {
  type: string,
  params: any,
};

in sagas.js

import type { TRequestAction } from `../.../.../types/actionTypes.js`

romanlv avatar Feb 08 '18 16:02 romanlv

@romanlv Flow is so different from import system of js or ts, when you import a type, you should add keyword import type . So the extension should know the type is flow type. I think i will spend some time to realize it due to Chinese New Year.

wangtao0101 avatar Feb 12 '18 05:02 wangtao0101

I sooo need this. Thank you if you can get to it!!

Noitidart avatar Apr 10 '18 08:04 Noitidart