-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix(client): initialize generic parameters of ExtendsHook #20131
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
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is in fact breaking types from external plugins. So it might not be as simple as this. (Briefly tested it w/ |
@adamjkb what would be the next steps? |
Fixes #20128
Explicitly initializes the default state of the ExtendsHook interface so in a JS environment they don't default to
any
and breaking the Client's type.The
any
fallback is one of the difference how JS is different from TS: microsoft/TypeScript#30009 (comment)The change in the PR is just defining the default explicitly but—as far as I can tell— Typescript already does this implicitly.