UNPKG

@storm-stack/hooks

Version:

A collection of React hooks used by Storm Software in various client libraries and applications.

10 lines (9 loc) 279 B
type AnyFunction = (...args: any[]) => any; /** * The function returns a memoized event handler. * * @param callback - The event handler to memoize. * @returns A memoized event handler. */ export declare function useEvent<T extends AnyFunction>(callback?: T): T; export {};