When passing a callback function as a parameter, I find it important to determine the type of this parameter without having to manually define it myself. Is there an easier way to obtain a type alias for this situation, rather than relying on VSCode's inference capabilities?
Perhaps there are methods similar to ReturnType and InstanceType that can assist in identifying the type?