UNPKG

@visualjs/grid

Version:
6 lines (5 loc) 346 B
import { ComponentType } from "preact"; import Grid from "../../grid"; import { State } from "../../grid"; export declare function connect<S, A>(selector: (state: State, props?: any) => S, mapActions?: (grid: Grid) => A): <P extends S>(Wrapped: ComponentType<P & A>) => (props: Omit<P, keyof S | keyof A>) => JSX.Element; export default connect;