79684704

Date: 2025-06-30 11:50:07
Score: 1
Natty:
Report link

To fix the TypeScript error, update your generic like this:

K extends object = {}

And when rendering the component:

<Item {...props} {...(additionalProps?.(el) as K)} />
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Milan Gohel