mergeProps.d.ts 1.2 KB

1234567891011121314
  1. import type { Action, Dispatch } from 'redux';
  2. import type { MergeProps } from './selectorFactory';
  3. import type { EqualityFn } from '../types';
  4. export declare function defaultMergeProps<TStateProps, TDispatchProps, TOwnProps, TMergedProps>(stateProps: TStateProps, dispatchProps: TDispatchProps, ownProps: TOwnProps): TMergedProps;
  5. export declare function wrapMergePropsFunc<TStateProps, TDispatchProps, TOwnProps, TMergedProps>(mergeProps: MergeProps<TStateProps, TDispatchProps, TOwnProps, TMergedProps>): (dispatch: Dispatch<Action<unknown>>, options: {
  6. readonly displayName: string;
  7. readonly areMergedPropsEqual: EqualityFn<TMergedProps>;
  8. }) => MergeProps<TStateProps, TDispatchProps, TOwnProps, TMergedProps>;
  9. export declare function mergePropsFactory<TStateProps, TDispatchProps, TOwnProps, TMergedProps>(mergeProps?: MergeProps<TStateProps, TDispatchProps, TOwnProps, TMergedProps>): ((dispatch: Dispatch<Action<unknown>>, options: {
  10. readonly wrappedComponentName: string;
  11. }) => never) | ((dispatch: Dispatch<Action<unknown>>, options: {
  12. readonly displayName: string;
  13. readonly areMergedPropsEqual: EqualityFn<TMergedProps>;
  14. }) => MergeProps<TStateProps, TDispatchProps, TOwnProps, TMergedProps>);