-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Bug: [require-await] Crash with yield*
+ Omit
#5458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
yield*
+ Omit
yield*
+ Omit
That is unfortunate! Filed #5459, thanks for mentioning! |
Looks like an upstream issue. The library is force-casting for some reason: https://github.com/ajafff/tsutils/blob/03b4df15d14702f9c7a128ac3fae77171778d613/util/type.ts#L216 Caveat: that repo seems dead for a year now. |
This probably is intentional from TS's part. Which is why we have this internal lint rule which warns against certain unsafe props We should probably fork the util and fix it locally? |
It's actually nullish in the TS types. |
As of #6428, the |
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
https://typescript-eslint.io/play/#ts=4.7.2&sourceType=module&code=IYZwngdgxgBAZgV2gFwJYHsICp4AoCUMA3gLABQMMANgKbIwAeAhAFwwDyAtqsgDykVKMANoBlMJwBG6KgDpQkKAElkNAE7Bk6NQF0CbAILhoK9Zu29gEMAD4A3OUoBfADQwA5AC93NxzDCoNFQAJjgMDmROQA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6aRAR1ko9oEMA7v0r50URNGgB7aJHBgAviEVA&tsconfig=N4XyA
(Unfortunately the playground does not show internal errors)
Repro Code
ESLint Config
tsconfig
Expected Result
I expected the linter to not crash and output nothing
Actual Result
Additional Info
Versions
@typescript-eslint/eslint-plugin
5.33.0
@typescript-eslint/parser
5.33.0
TypeScript
4.7.4
ESLint
8.21.0
node
18.7.0
The text was updated successfully, but these errors were encountered: