prefer-object-from-entries
: bad autofix if reduce
has a type parameter
#2519
Labels
prefer-object-from-entries
: bad autofix if reduce
has a type parameter
#2519
If an explicit type parameter is present on
reduce
, it's unsafe forprefer-object-from-entries
to fix the problem because this type parameter will carry over tomap
which will likely be incompatible:Full reproduction: https://stackblitz.com/edit/vitejs-vite-axdfht2u
The text was updated successfully, but these errors were encountered: