type noop = (this: any, ...args: any[]) => any; type PickFunction = (this: ThisParameterType, ...args: Parameters) => ReturnType; declare const useMemoizedFn: (fn: T) => PickFunction; export default useMemoizedFn;