amis-rpc-design/node_modules/rc-tree-select/lib/hooks/useRefFunc.d.ts
2023-10-07 19:42:30 +08:00

6 lines
198 B
TypeScript

/**
* Same as `React.useCallback` but always return a memoized function
* but redirect to real function.
*/
export default function useRefFunc<T extends (...args: any[]) => any>(callback: T): T;