Files
planet/frontend/node_modules/rc-tree-select/es/hooks/useRefFunc.d.ts
2026-03-05 11:46:58 +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;