UNPKG

react-layout-motion

Version:
5 lines (4 loc) 240 B
type noop = (this: any, ...args: any[]) => any; type PickFunction<T extends noop> = (this: ThisParameterType<T>, ...args: Parameters<T>) => ReturnType<T>; export declare function useEvent<T extends noop>(fn: T): PickFunction<T>; export {};