mirror of
https://github.com/hex248/ob248.com.git
synced 2026-02-08 10:43:38 +00:00
9 lines
313 B
TypeScript
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 };
|