UNPKG

undux

Version:

Dead simple state management for React

14 lines (13 loc) 514 B
import * as React from 'react'; import { Store, StoreDefinition } from '../'; import { Diff } from '../utils'; /** * @deprecated Use `createConnectedStore` instead. */ export declare function connect<StoreState extends object>(store: StoreDefinition<StoreState>): <Props, PropsWithStore extends { store: Store<StoreState>; } & Props = { store: Store<StoreState>; } & Props>(Component: React.ComponentType<PropsWithStore>) => React.ComponentClass<Diff<PropsWithStore, { store: Store<StoreState>; }>>;