I\'m getting a typescript error on a custom hook. My hook returns 3 functions. Two with no arguments and one with a function argument. When I use the hook and call the first