Skip to content

Commit

Permalink
Merge pull request #40 from klassicd/master
Browse files Browse the repository at this point in the history
Bring flow config inline with typescript
  • Loading branch information
didierfranc authored May 10, 2018
2 parents eb5fcdd + 622d576 commit 5ee70f8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions dist/react-watefall.js.flow
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
// @flow
declare module 'react-waterfall' {
declare type State = {}
declare type Self = {}
declare type Action = (State) => {}
declare type State = any
declare type Self = any
declare type Action = (State) => any
declare type Actions = { [string]: Action }
declare type Subscriber = (Action, State) => void
declare type Subscriber = (Action: Action, State: State) => void

declare type Store = {
initialState: State,
actions: Actions,
}

declare type Middleware = (Store, Self) => String => void
declare type Middleware = (Store: Store, Self: Self) => String => void

declare export var initStore: (
state: {},
state: any,
middlewares?: [Middleware],
) => {
Provider: React$Component<*>,
Consumer: React$Component<*>,
connect: ([string]) => (React$Component<*>) => React$Component<*>,
Provider: React$ComponentType<any>,
Consumer: React$ComponentType<any>,
connect: (state: any) => (React$ComponentType<any>) => React$ComponentType<any>,
actions: Actions,
getState: () => State,
subscribe: Subscriber,
Expand Down

0 comments on commit 5ee70f8

Please sign in to comment.