I am passing a callback function as a function parameter, and I need to know the type of this parameter. I don't want to define the type manually as it's too complicated. VSCode can infer the parameter type, but how can I get a type alias?
Is there some methods like ReturnType and InstanceType that can do the job?
