Files
ServiceManager/frontend/node_modules/@radix-ui/react-use-effect-event/dist/index.d.ts
2026-01-01 17:40:53 +01:00

9 lines
313 B
TypeScript

type AnyFunction = (...args: any[]) => any;
/**
* Designed to approximate the behavior on `experimental_useEffectEvent` as best
* as possible until its stable release, and back-fill it as a shim as needed.
*/
declare function useEffectEvent<T extends AnyFunction>(callback?: T): T;
export { useEffectEvent };