Open phistuck opened 4 months ago
Changing the const GForm =
line to const GForm = withTranslation()(GFormed) as ComponentType<TProps>;
silences the error
This might be an issue with the types in one of those dependencies. Please provide a reduced (isolated) repro -- it's really not possible to look at that target type (as a human) and assess if something about this is wrong or not.
🔎 Search Terms
withTranslation, reduxForm, IntrinsicAttributes
🕗 Version & Regression Information
⏯ Playground Link
https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBAJQKYEMDG8BmUIjgcilQ3wG4AoUSWOAbziIBMBXADwDFoQAaOASQB2AKyQYkjTlBAAFHGADOcAL5xsuAkzYBaTFzKVw0ePQDuwGAAsAKlBQD5AGxQxgEAbwDq567ftOXbsqqOHiExDBawACMABwCSKww+uQwAJ5gSHBWshAKcAC8dHBgAFxwAswgAEZIUMoUaRlZkiDswEgOjIqF9ADWAPxlFdW19SnpmVYAgg4OOXmF2XKKAGRwXpY2do7OrgINE1lWBVkzc8twa4IiYhJc8-IAPFYtbR1dvNOzDwB8FORoNzyeAAcROAAppGUrFYAJQFH5wR6gADmcBQDhg+VoAGUYFBgAIUZCAHRgWEqAD0fwBQNBLXEJ00HC4z1e7U68k+Z1+4PouikZXwmHwylh4JBsIogPs9K4JzMm18OwCAnB4pBDMYUvI5AS1HgMuBcHYEPh+URj018rA2KiVL+QA
💻 Code
🙁 Actual behavior
It complains about the last line, about
p={1}
-It is wrong or non-sensical, as all of those types I used add or omit their high-order-component types from the type I pass, so
ComponentType<TProps>
should end up being the type ofGForm
, but it is not🙂 Expected behavior
No type errors
Additional information about the issue
No response