Intellisense not working for object destructuring in Visual Studio Code

The intellisense of VSCode doesn’t work when destructuring an object, it returns any as the type, no matter what.

I tried:

/**
 * @returns {{name:String,surname:String}}
 */
function Test(){
 return {name:"John",surname:"Doe"};
}
const {name,surname} = Test(); // Intellisense shows "any" for both 

I was expecting to get proper type information, in this case, string.