Expected behavior:
function test(/*to*/callback: (a: any) => void) {
callback/*from*/(d);
}
Actual behavior:
function test(callback: /*to*/(a: any) => void) {
callback/*from*/(d);
}
When callback is just function value expression, it goes to the correct position:
function test(/*to*/callback: (a: any) => void) {
callback/*from*/;
}
Expected behavior:
Actual behavior:
When callback is just function value expression, it goes to the correct position: