Files
terminal/web/node_modules/react-countup/build/helpers/useEventCallback.d.ts
T

8 lines
341 B
TypeScript

/**
* Create a stable reference to a callback which is updated after each render is committed.
* Typed version borrowed from Formik v2.2.1. Licensed MIT.
*
* https://github.com/formium/formik/blob/9316a864478f8fcd4fa99a0735b1d37afdf507dc/LICENSE
*/
export declare function useEventCallback<T extends (...args: any[]) => any>(fn: T): T;