1 | import React from 'react';
|
2 | import { ActionCreatorsMapObject } from 'redux';
|
3 | import { ComponentProps } from './types';
|
4 | import { Feature } from './features/utilities/types';
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | export { Feature };
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | export interface FeatureProps<LocalStore, LocalActions> extends ComponentProps {
|
16 |
|
17 | actions: LocalActions;
|
18 |
|
19 | store: LocalStore;
|
20 | }
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | export default function withFeature<LocalStore, LocalActions extends ActionCreatorsMapObject>(feature: Feature<LocalStore, LocalActions>): <OwnProps>(WrappedComponent: React.ComponentType<OwnProps>) => React.ComponentType<OwnProps & ComponentProps & FeatureProps<LocalActions, LocalStore>>;
|