From cc65fafb81d6ab46c3dbfe5cda3bbf6cb16a8e47 Mon Sep 17 00:00:00 2001 From: Michael DePetrillo Date: Tue, 24 Apr 2018 02:11:57 -0700 Subject: [PATCH] Update flow config. --- dist/react-watefall.js.flow | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/dist/react-watefall.js.flow b/dist/react-watefall.js.flow index 49484df..49b6d6d 100644 --- a/dist/react-watefall.js.flow +++ b/dist/react-watefall.js.flow @@ -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, + Consumer: React$ComponentType, + connect: (state: any) => (React$ComponentType) => React$ComponentType, actions: Actions, getState: () => State, subscribe: Subscriber,