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
AdmiralGeneralAladeenOPā€¢3y ago
same is happening with destructuring arrays, it's showing the array of return values as the type
cje
cjeā€¢3y ago
restart the ts server (cmd+shift+p), see if that fixes it that solves like 99% of typescript issues
AdmiralGeneralAladeen
AdmiralGeneralAladeenOPā€¢3y ago
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ā€¢3y ago
maybe the target/libs on tsconfig file
AdmiralGeneralAladeen
AdmiralGeneralAladeenOPā€¢3y ago
AdmiralGeneralAladeen
AdmiralGeneralAladeenOPā€¢3y ago
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
AdmiralGeneralAladeen
AdmiralGeneralAladeenOPā€¢3y ago
Neto
Netoā€¢3y ago
theowat
AdmiralGeneralAladeen
AdmiralGeneralAladeenOPā€¢3y ago
WAIT nvm no that didn't šŸ˜© šŸ˜‚ gg
Neto
Netoā€¢3y ago
its over gg
Want results from more Discord servers?
Add your server