我开始使用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