This repository has been archived by the owner on Sep 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
462962b
commit 1921ff0
Showing
17 changed files
with
145 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// flow-typed signature: 62bc5615b7c27f8f00718fec93336e7f | ||
// flow-typed version: ef0148e929/classnames_v2.x.x/flow_>=v0.28.x | ||
|
||
type $npm$classnames$Classes = | ||
string | | ||
{[className: string]: ?boolean } | | ||
Array<string> | | ||
void | | ||
null | ||
|
||
declare module 'classnames' { | ||
declare function exports( | ||
...classes: Array<$npm$classnames$Classes> | ||
): string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
// flow-typed signature: 708adb773a9ad8abf8edbbb240cc59b4 | ||
// flow-typed version: f86b0822d6/react-redux_v4.x.x/flow_>=v0.30.x | ||
|
||
/* @flow */ | ||
type ConnectAll = <D, P, S, C: React$Component<D, P, S>, SP, DP, Dispatch: Function>( | ||
mapStateToProps: (state: Object, ownProps: $Diff<$Diff<$Diff<P, DP>, SP>, D>) => SP, | ||
mapDispatchToProps: (dispatch: Dispatch, ownProps: $Diff<$Diff<$Diff<P, DP>, SP>, D>) => DP, | ||
mergeProps: null | void, | ||
options?: {pure?: boolean, withRef?: boolean} | ||
) => (component: Class<C>) => Class<React$Component<D, $Diff<$Diff<P, DP>, SP>, S>>; | ||
|
||
type ConnectAllStateless = <P, SP, DP, Dispatch: Function>( | ||
mapStateToProps: (state: Object, ownProps: $Diff<$Diff<P, DP>, SP>) => SP, | ||
mapDispatchToProps: (dispatch: Dispatch, ownProps: $Diff<$Diff<P, DP>, SP>) => DP, | ||
mergeProps: null | void, | ||
options?: {pure?: boolean, withRef?: boolean} | ||
) => (component: (props: P) => any) => Class<React$Component<void, $Diff<$Diff<P, DP>, SP>, void>>; | ||
|
||
type ConnectMerged = <D, P, S, C: React$Component<D, P, S>, SP, DP, MP, Dispatch: Function>( | ||
mapStateToProps: (state: Object, ownProps: $Diff<$Diff<P, MP>, D>) => SP, | ||
mapDispatchToProps: (dispatch: Dispatch, ownProps: $Diff<$Diff<P, MP>, D>) => DP, | ||
mergeProps: (stateProps: SP, dispatchProps: DP, ownProps: $Diff<$Diff<P, MP>, D>) => MP, | ||
options?: {pure?: boolean, withRef?: boolean} | ||
) => (component: Class<C>) => Class<React$Component<D, $Diff<P, MP>, S>>; | ||
|
||
type ConnectMergedStateless = <P, SP, DP, MP, Dispatch: Function>( | ||
mapStateToProps: (state: Object, ownProps: $Diff<P, MP>) => SP, | ||
mapDispatchToProps: (dispatch: Dispatch, ownProps: $Diff<P, MP>) => DP, | ||
mergeProps: (stateProps: SP, dispatchProps: DP, ownProps: $Diff<P, MP>) => MP, | ||
options?: {pure?: boolean, withRef?: boolean} | ||
) => (component: (props: P) => any) => Class<React$Component<void, $Diff<P, MP>, void>>; | ||
|
||
type ConnectNoState = <D, P, S, C: React$Component<D, P, S>, DP, Dispatch: Function>( | ||
mapStateToProps: null | void, | ||
mapDispatchToProps: (dispatch: Dispatch, ownProps: $Diff<$Diff<P, DP>, D>) => DP, | ||
mergeProps: null | void, | ||
options?: {pure?: boolean, withRef?: boolean} | ||
) => (component: Class<C>) => Class<React$Component<D, $Diff<P, DP>, S>>; | ||
|
||
type ConnectNoStateStatless = <P, DP, Dispatch: Function>( | ||
mapStateToProps: null | void, | ||
mapDispatchToProps: (dispatch: Dispatch, ownProps: $Diff<P, DP>) => DP, | ||
mergeProps: null | void, | ||
options?: {pure?: boolean, withRef?: boolean} | ||
) => (component: (props: P) => any) => Class<React$Component<void, $Diff<P, DP>, void>>; | ||
|
||
type ConnectDispatch = <D, P, S, C: React$Component<D, P, S>, SP, Dispatch: Function>( | ||
mapStateToProps: (state: Object, ownProps: $Diff<$Diff<$Diff<P, {dispatch: Dispatch}>, SP>, D>) => SP, | ||
mapDispatchToProps: null | void, | ||
mergeProps: null | void, | ||
options?: {pure?: boolean, withRef?: boolean} | ||
) => (component: Class<C>) => Class<React$Component<D, $Diff<$Diff<P, {dispatch: Dispatch}>, SP>, S>>; | ||
|
||
type ConnectDispatchStateless = <P, SP, Dispatch: Function>( | ||
mapStateToProps: (state: Object, ownProps: $Diff<$Diff<P, {dispatch: Dispatch}>, SP>) => SP, | ||
mapDispatchToProps: null | void, | ||
mergeProps: null | void, | ||
options?: {pure?: boolean, withRef?: boolean} | ||
) => (component: (props: P) => any) => Class<React$Component<void, $Diff<$Diff<P, {dispatch: Dispatch}>, SP>, void>>; | ||
|
||
type ConnectDefault = <D, P, S, C: React$Component<D, P, S>, Dispatch: Function>() => | ||
(component: Class<C>) => Class<React$Component<D, $Diff<P, {dispatch: Dispatch}>, S>>; | ||
|
||
type ConnectDefaultStateless = () => | ||
<P>(component: (props: P) => any) => Class<React$Component<void, $Diff<P, {dispatch: Function}>, void>>; | ||
|
||
declare module 'react-redux' { | ||
declare var exports: { | ||
connect: ConnectAll | ||
& ConnectAllStateless | ||
& ConnectMerged | ||
& ConnectMergedStateless | ||
& ConnectNoState | ||
& ConnectNoStateStatless | ||
& ConnectDispatch | ||
& ConnectDispatchStateless | ||
& ConnectDefault | ||
& ConnectDefaultStateless; | ||
Provider: ReactClass<{store: Object, children?: any}>; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// flow-typed signature: 3b60d0484a561f2e7c43ac2a5eb28d87 | ||
// flow-typed version: f622abbe3e/redux_v3.x.x/flow_>=v0.23.x | ||
|
||
declare module 'redux' { | ||
declare type State = any; | ||
declare type Action = Object; | ||
declare type AsyncAction = any; | ||
declare type Reducer<S, A> = (state: S, action: A) => S; | ||
declare type BaseDispatch = (a: Action) => Action; | ||
declare type Dispatch = (a: Action | AsyncAction) => any; | ||
declare type ActionCreator = (...args: any) => Action | AsyncAction; | ||
declare type MiddlewareAPI = { dispatch: Dispatch, getState: () => State }; | ||
declare type Middleware = (api: MiddlewareAPI) => (next: Dispatch) => Dispatch; | ||
declare type Store = { | ||
dispatch: Dispatch, | ||
getState: () => State, | ||
subscribe: (listener: () => void) => () => void, | ||
replaceReducer: (reducer: Reducer<any, any>) => void | ||
}; | ||
declare type StoreCreator = (reducer: Reducer<any, any>, initialState: ?State) => Store; | ||
declare type StoreEnhancer = (next: StoreCreator) => StoreCreator; | ||
declare type ActionCreatorOrObjectOfACs = ActionCreator | { [key: string]: ActionCreator }; | ||
declare type Reducers = { [key: string]: Reducer<any, any> }; | ||
declare class Redux { | ||
bindActionCreators<actionCreators: ActionCreatorOrObjectOfACs>(actionCreators: actionCreators, dispatch: Dispatch): actionCreators; | ||
combineReducers(reducers: Reducers): Reducer<any, any>; | ||
createStore(reducer: Reducer<any, any>, initialState?: State, enhancer?: StoreEnhancer): Store; | ||
applyMiddleware(...middlewares: Array<Middleware>): StoreEnhancer; | ||
compose(...functions: Array<Function | StoreEnhancer>): Function; | ||
} | ||
declare var exports: Redux; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
declare module "redbox-react" { | ||
declare var exports: ReactClass; | ||
declare var exports: ReactClass<any>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
declare module "simple-json-fetch" { | ||
declare class SimpleJsonFetch { | ||
(uri: string): Promise; | ||
(uri: string): Promise<any>; | ||
} | ||
declare var exports: SimpleJsonFetch; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters