salsita / prism

React / Redux action composition made simple http://salsita.github.io/prism/
496 stars 24 forks source link

flowtype checking with v0.28.0 #34

Closed stratospark closed 7 years ago

stratospark commented 8 years ago

Flow broke for me when I updated. Here's what I'm getting when I run:

node_modules/redux-elm/lib/index.js.flow:5
  5: export type StatelessReactComponent = (props : Object) => ReactElement;
                                                               ^^^^^^^^^^^^ identifier `ReactElement`. Could not resolve name

node_modules/redux-elm/lib/index.js.flow:6
  6: export type Component = ReactComponent | StatelessReactComponent;
                             ^^^^^^^^^^^^^^ ReactComponent. Application of polymorphic type needs <list of 3 arguments>. (Can use `*` for inferrable ones)

node_modules/redux-elm/lib/index.js.flow:24
 24:   constructor(initialModel : M, saga? : () => Generator, matcher? : Matcher) : Updater<M>;
                                                   ^^^^^^^^^ Generator. Application of polymorphic type needs <list of 3 arguments>. (Can use `*` for inferrable ones)

node_modules/redux-elm/src/index.js.flow:5
  5: export type StatelessReactComponent = (props : Object) => ReactElement;
                                                               ^^^^^^^^^^^^ identifier `ReactElement`. Could not resolve name

node_modules/redux-elm/src/index.js.flow:6
  6: export type Component = ReactComponent | StatelessReactComponent;
                             ^^^^^^^^^^^^^^ ReactComponent. Application of polymorphic type needs <list of 3 arguments>. (Can use `*` for inferrable ones)

node_modules/redux-elm/src/index.js.flow:24
 24:   constructor(initialModel : M, saga? : () => Generator, matcher? : Matcher) : Updater<M>;
                                                   ^^^^^^^^^ Generator. Application of polymorphic type needs <list of 3 arguments>. (Can use `*` for inferrable ones)
tomkis commented 8 years ago

Hello @stratospark I am aware of this and now it's fixed in next branch. Soon to be released with 2.2.0