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
mergeDeep does not allow interface types. The following
interface Example {
b: string
}
const a: Example = { b: 'c' }
R.mergeDeep(a, { d: 'e' })
fails with
Argument of type 'Example' is not assignable to parameter of type 'Record<string, unknown>'.
Index signature for type 'string' is missing in type 'Example'.
The text was updated successfully, but these errors were encountered:
I can see if we can extend the types to support interfaces, too; regardless, take a look at the following explanation of what kind of challenges mergeDeep introduces (here, about Classes):
mergeDeep
does not allow interface types. The followingfails with
The text was updated successfully, but these errors were encountered: