全局类型在Webstorm中不起作用

时间:2017-06-04 07:23:46

标签: intellij-idea flowtype

我开始使用Flow with webstorm,IDE无法拦截我声明的全局类型(而流程编译器并没有抱怨)。

流类型/ libDefs.js

// @flow
import type { UI } from 'data/redux/redux.flow';
declare var module: {
  hot:? {
    accept(reducers:? string, func:? Function): any,
  }
};

declare type State = {| //btw. eslint gives me here error 'no-undef' State is not defined
  +ui: UI,
|}

的src /数据/终极版/减速器/ ui.js

enter image description here

1 个答案:

答案 0 :(得分:1)

已知问题,请按WEB-27102进行更新。