Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
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 havesearched for related issues and found none that matched my issue.
- I haveread the FAQ and my problem is not listed.
Playground Link
Repro Code
declareconsttest:unknown;(async()=>{awaittest})();
ESLint Config
module.exports={parser:"@typescript-eslint/parser",rules:{"@typescript-eslint/await-thenable":"error"},};
tsconfig
{}
Expected Result
There's no guarantee that anunknown
-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 releasedunknown
inTypeScript 3.0 less than a year earlier.
Not detectingunknown
was noted by@Tjstretchalot in#8094 (comment).