UNPKG

@surglogs/with-connected-handler

Version:
11 lines (8 loc) 405 B
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