I hava write some code write in vscode like:
function sum(a:number, b:number) {
return a + b
}
Meanwhile, vscode give the user some tips which contains Type inference of this function return value.
How does vscode get that auto type inference result, is there some lib or typescript API can get result?