amis-rpc-design/node_modules/rc-menu/lib/hooks/useMemoCallback.d.ts

6 lines
203 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
/**
* Cache callback function that always return same ref instead.
* This is used for context optimization.
*/
export default function useMemoCallback<T extends (...args: any[]) => void>(func: T): T;