UNPKG

365 BTypeScriptView Raw
1import type { TExtend } from 'tsfn';
2export declare type TActualHandlers<T> = {
3 [key in keyof T]: (...args: any[]) => void;
4};
5export declare type THandlers<P> = {
6 [key: string]: (props: P) => (...args: any[]) => void;
7};
8export declare const mapHandlers: <P extends {}, R extends THandlers<P>>(handlers: R) => (props: P) => TExtend<P, TActualHandlers<R>>;