Bug: [no-unsafe-return] any to any callback is not allowed when cb is union type #8982
Closed
4 tasks done
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
https://typescript-eslint.io/play/#ts=5.1.6&fileType=.ts&code=CYUwxgNghgTiAEAzArgOzAFwJYHtXwxilQGdEcYBbAQVQE8BhAIwAowmAueFl4KDKF2J0AlPAC8APnjCRIofQDcAWABQhYmQo16zHnwELRRidIDea%2BPDgZkMfAaiKrAehfwA8gGk1AXxEqqmqgkLAIKOjYeAREpORUtIxMHjAAcsgQEGyc8KgZEPAAPty8-IIy9GJSFaLyNYEacdqJzCnpmfplRnXCpvBm8JbWILb28I7ObvAAqqRQiAg2dvg4iBXwAAbCGwR0AA4gwPAAblAQyCAAdH4BakA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6Jge1tieQEMAZolrRE%2BWNCbpIiaNA7RI4MAF8QKoA&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eFYDAruuGAL4g9A&tokens=true
Repro Code
ESLint Config
tsconfig
Expected Result
I typed the callback to allow any as a return value. So the any to any converter should be fine.
Actual Result
ts-eslint is unhappy with
Additional Info
No response
The text was updated successfully, but these errors were encountered: