-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
clean @ts-expect-error #12664
clean @ts-expect-error #12664
Conversation
packages/jest-types/src/Global.ts
Outdated
@@ -123,5 +123,5 @@ export interface GlobalAdditions extends TestFrameworkGlobals { | |||
export interface Global | |||
extends GlobalAdditions, | |||
Omit<typeof globalThis, keyof GlobalAdditions> { | |||
[extras: string]: unknown; | |||
[extras: string | symbol]: unknown; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm.. Perhaps instead of tweaking this one, it would be better to extend Global
locally inside jest-runtime/src/types.ts. In somewhat similar way:
If I don’t ask to much (; These also could be fixed: |
Co-authored-by: Tom Mrazauskas <tom@mrazauskas.de>
@mrazauskas I tried. but don't know how to extend |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
microsoft/TypeScript#24587 is solved by microsoft/TypeScript#44512. so we could remove the @ts-expect-error now.
Test plan
Green CI