Does anyone know why typescript type hints in vscode could be broken?

I'm in an electron app and for example when using await on promises, hovering over the variable shows it as a promise instead of the underlying type. Printing it out shows that it's not a promise?
11 Replies
AdmiralGeneralAladeen
same is happening with destructuring arrays, it's showing the array of return values as the type
cje
cjeā€¢2y ago
restart the ts server (cmd+shift+p), see if that fixes it that solves like 99% of typescript issues
AdmiralGeneralAladeen
have done that multiple times still stuck im assuming its some eslint issue maybe? the project is cloned from a repo with heavy eslint stuff
Neto
Netoā€¢2y ago
maybe the target/libs on tsconfig file
AdmiralGeneralAladeen
I think these are far enough forward for promises holy shit that was the problem the repo I cloned from didn't have it capitalized correctly wtf šŸ˜‚ thanks @Neto
Neto
Netoā€¢2y ago
theowat
AdmiralGeneralAladeen
WAIT nvm no that didn't šŸ˜© šŸ˜‚ gg
Neto
Netoā€¢2y ago
its over gg
Want results from more Discord servers?
Add your server