You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating to the latest versions of ramda and @types/ramda, I encountered an issue with the type inference of the mergeDeepRight function in TypeScript. Specifically, when merging an object of type T with a Partial, the resulting type is not correctly inferred as T. Instead, properties are being inferred as unknown, leading to type errors.
This behavior did not occur in the previous versions ([email protected] and @types/[email protected]), where the types were correctly inferred, and the merge operation worked without any type assertions or errors.
Description:
After updating to the latest versions of ramda and @types/ramda, I encountered an issue with the type inference of the mergeDeepRight function in TypeScript. Specifically, when merging an object of type T with a Partial, the resulting type is not correctly inferred as T. Instead, properties are being inferred as unknown, leading to type errors.
This behavior did not occur in the previous versions ([email protected] and @types/[email protected]), where the types were correctly inferred, and the merge operation worked without any type assertions or errors.
Affected Versions:
Reproduction:
https://stackblitz.com/edit/vitejs-vite-xsspwg?file=index.ts
The text was updated successfully, but these errors were encountered: