Typescript conditional types based upon a function type

visit shbcf.ru