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
We've been having issues upgrading TypeScript to 3.4 in a project that uses redux-starter-kit, so I gave v0.5.1 a try and noticed that the following code does not compile anymore:
error TS2345: Argument of type '"profile"' is not assignable to parameter of type '"main" & "profile" & "prefs"'.
Type '"profile"' is not assignable to type '"main"'.
It seems that the argument type for the action was converted from a union to an intersection type.
The same code works with redux-starter-kit 0.4.3, but that one has other typing issues that prevent us from upgrading to TypeScript 3.4.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
We've been having issues upgrading TypeScript to 3.4 in a project that uses redux-starter-kit, so I gave v0.5.1 a try and noticed that the following code does not compile anymore:
The error
tsc
gives is:error TS2345: Argument of type '"profile"' is not assignable to parameter of type '"main" & "profile" & "prefs"'.
Type '"profile"' is not assignable to type '"main"'.
It seems that the argument type for the action was converted from a union to an intersection type.
The same code works with
redux-starter-kit
0.4.3, but that one has other typing issues that prevent us from upgrading to TypeScript 3.4.The text was updated successfully, but these errors were encountered: