import * as React from 'react'; import hoistNonReactStatics from 'hoist-non-react-statics'; import { Omit } from '../_util/type'; import { FormComponentProps } from './Form'; // Copy from @types/react-redux https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-redux/index.d.ts export type ConnectedComponentClass< C extends React.ComponentType, P > = React.ComponentClass> & hoistNonReactStatics.NonReactStatics & { WrappedComponent: C; }; export type FormWrappedProps = < C extends React.ComponentType >(component: C) => ConnectedComponentClass>;