@surglogs/with-connected-handler
Version:
HOC for easy event handler creation
11 lines (8 loc) • 405 B
TypeScript
interface WithConnectedHandlerOptions {
handler: (...connectedProps: any[]) => (...args: any[]) => any
name: string
actions?: { [actionName: string]: (...args: any[]) => any }
args?: { [connectedProp: string]: string | ((state: object, props: object) => any) }
}
declare const withConnectedHandler: (options: WithConnectedHandlerOptions) => (component: any) => any
export = withConnectedHandler