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
Expected behavior: b.flatten() infers the type parameter as string and returns string[]
Actual behavior:
The type argument for type parameter 'R' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
Type argument candidate 'string' is not a valid type argument because it is not a supertype of candidate 'string[]'.
The text was updated successfully, but these errors were encountered:
TypeScript Version: 2.1
The infered argument candidate 'string' is not considered valid when it should be.
Code:
Expected behavior:
b.flatten()
infers the type parameter asstring
and returnsstring[]
Actual behavior:
The text was updated successfully, but these errors were encountered: