├── .watchmanconfig ├── .eslintrc ├── .gitignore ├── src ├── __tests__ │ └── index.test.js └── index.js ├── .flowconfig ├── .babelrc ├── try ├── index.html ├── redux.js ├── flip.js └── slideshow.js ├── package.json ├── README.md ├── flow-typed └── npm │ └── react-redux_v5.x.x.js └── lib └── index.js /.watchmanconfig: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "react-app" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .cache 3 | /dist/ 4 | -------------------------------------------------------------------------------- /src/__tests__/index.test.js: -------------------------------------------------------------------------------- 1 | // @flow 2 | // $FlowFixMe 3 | test('it should do something', () => {}); 4 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | 3 | [include] 4 | 5 | [libs] 6 | 7 | [lints] 8 | 9 | [options] 10 | 11 | [strict] 12 | -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["env", "react", "stage-0"], 3 | "plugins": ["transform-class-properties", "babel-plugin-jsx-adopt"] 4 | } 5 | -------------------------------------------------------------------------------- /try/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |,
53 | props: OP,
54 | state: void
55 | }
56 |
57 | declare type ConnectedComponentWithDefaultPropsClass ) => ConnectedComponentClass extends React$Component<{
71 | store: Store,
72 | children?: any
73 | }> {}
74 |
75 | declare function createProvider(
76 | storeKey?: string,
77 | subKey?: string
78 | ): Provider<*, *>;
79 |
80 | declare type ConnectOptions = {
81 | pure?: boolean,
82 | withRef?: boolean
83 | };
84 |
85 | declare type Null = null | void;
86 |
87 | declare function connect(
88 | ...rest: Array(
99 | mapStateToProps: MapStateToProps,
100 | mapDispatchToProps: Null,
101 | mergeProps: Null,
102 | options?: ConnectOptions
103 | ): Connector(
113 | mapStateToProps: MapStateToProps,
114 | mapDispatchToProps: MapDispatchToProps,
115 | mergeProps: Null,
116 | options?: ConnectOptions
117 | ): Connector(
120 | mapStateToProps: MapStateToProps,
121 | mapDispatchToProps: Null,
122 | mergeProps: MergeProps(
127 | mapStateToProps: MapStateToProps,
128 | mapDispatchToProps: MapDispatchToProps,
129 | mergeProps: MergeProps