amis-rpc-design/node_modules/react-redux/es/connect/mapStateToProps.d.ts

29 lines
1.3 KiB
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import type { MapStateToPropsParam } from './selectorFactory';
export declare function mapStateToPropsFactory<TStateProps, TOwnProps, State>(mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps, State>): ((dispatch: import("redux").Dispatch<import("redux").AnyAction>) => {
(): import("redux").ActionCreatorsMapObject<any> | import("redux").ActionCreator<any> | {
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
dependsOnOwnProps?: boolean | undefined;
};
dependsOnOwnProps: boolean;
}) | ((dispatch: import("redux").Dispatch<import("redux").Action<unknown>>, options: {
readonly wrappedComponentName: string;
}) => never) | ((dispatch: import("redux").Dispatch<import("redux").AnyAction>, { displayName }: {
displayName: string;
}) => {
(stateOrDispatch: {
[key: string]: any;
} | import("redux").Dispatch<import("redux").AnyAction>, ownProps?: {
[key: string]: any;
} | undefined): import("./wrapMapToProps").MapToProps<{
[key: string]: any;
}>;
dependsOnOwnProps: boolean;
mapToProps(stateOrDispatch: {
[key: string]: any;
} | import("redux").Dispatch<import("redux").AnyAction>, ownProps?: {
[key: string]: any;
} | undefined): import("./wrapMapToProps").MapToProps<{
[key: string]: any;
}>;
});