rooks
Version:
Essential React custom hooks ⚓ to super charge your components!
10 lines • 355 B
TypeScript
type CallbackType<T> = (...args: T[]) => void;
/**
* useFreshTick
* @param callback The callback to be called on mount
* @returns A fresh callback.
* @see https://rooks.vercel.app/docs/useFreshCallback
*/
declare function useFreshTick<T>(callback: CallbackType<T>): CallbackType<T>;
export { useFreshTick };
//# sourceMappingURL=useFreshTick.d.ts.map