JSX.ElementType from #51328 doesn't instantiate defaulted type parameters correctly #53939
Labels
Bug
A bug in TypeScript
Fix Available
A PR has been opened for this issue
Recent Regression
This is a new regression just found in the last major/minor version of TypeScript.
Milestone
In DT, preact dependents like preact-i18n have failures in their tests when they should not:
preact's ElementType looks like this:
Replacing
P
withany
and deleting the type parameter fixes the problem:Broken by #51328. Looks like almost the right test case was added to catch this, but not quite.
The text was updated successfully, but these errors were encountered: