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
Here is an interface that takes in two templates. the returned function should be a partial of one of the templates (this is a take on the React-Redux):
MyState.connect should expect one function (which it does). The argument should be of type IAppState (which it is). But the return is suppose to be a Partial<IAppProps>. However, as you can see I am returning foo: null too and the service is not complaining about this.
What am I doing wrong here?
The text was updated successfully, but these errors were encountered:
This is not specific to map types, or Partial. the excess property checks (that should catch foo as an extra property) do not run on return positions of contextually typed functions. #12632 tracks that.
Here is an interface that takes in two templates. the returned function should be a partial of one of the templates (this is a take on the React-Redux):
Now, here is the example of a state that would want to use this:
MyState.connect
should expect one function (which it does). The argument should be of typeIAppState
(which it is). But the return is suppose to be aPartial<IAppProps>
. However, as you can see I am returningfoo: null
too and the service is not complaining about this.What am I doing wrong here?
The text was updated successfully, but these errors were encountered: