🐛 Bug: Added type should be Promise<boolean> not Promise<boolean> | boolean #1494
Labels
area: fixers
Around how TypeStat fixes code.
status: accepting prs
Please, send a pull request to resolve this! 🙏
type: bug
Something isn't working :( 🐛
Bug Report Checklist
main
branch of the repository.Expected
This function is not missing return types
Actual
However, it's "fixed" into this
Additional Info
See discussion https://github.com/JoshuaKGoldberg/TypeStat/pull/1481/files#r1545469119
tsconfig.json
typestat.json
The problem seems to lie when using
await
or other promise kinds. If function is marked as async, it would be safer to put all types inside Promise.The text was updated successfully, but these errors were encountered: