Closed as not planned
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Playground Link
Repro Code
declare const test: unknown;
(async () => {
await test
})();
ESLint Config
module.exports = {
parser: "@typescript-eslint/parser",
rules: {
"@typescript-eslint/await-thenable": "error"
},
};
tsconfig
Expected Result
There's no guarantee that an unknown
-typed value is a Thenable. I'd expect the rule to report a complaint in this case.
Actual Result
No complaint.
Additional Info
await-thenable
was first implemented in #192 back in 2019. TypeScript had previously released unknown
in TypeScript 3.0 less than a year earlier.
Not detecting unknown
was noted by @Tjstretchalot in #8094 (comment).