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
Not sure i understand what the use of a generic signature here is meant to enforce. but either ways, the function API says it can be called with any T, and it will somehow return you a result of the same T passed..
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
TypeScript Version: 2.1.6
Code
Expected behavior:
Valid values for 'item' property on result would be restricted to keys of validKeys.
Actual behavior:
Inspecting the error if the 'item' property is removed from the result confirms that the result object is typed as result.
The text was updated successfully, but these errors were encountered: