UNPKG

@rbxts/pretty-react-hooks

Version:
9 lines (8 loc) 301 B
/// <reference types="@rbxts/compiler-types" /> /** * Returns a memoized callback that wraps the latest version of the input * callback. * @param callback The callback to memoize. * @returns The memoized callback. */ export declare function useLatestCallback<T extends Callback>(callback: T): T;