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
Cannot invoke an expression whose type lacks a call signature. Type '{ <U>(this: [string, string, string, string, string], callbackfn: (value: string, index: number, ...' has no compatible call signatures.
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
Array.prototype.map
seems to fail if given a disjoint union of different array typesTypeScript Version: 2.2.2 (also tried 2.3.4. Reproducible on the Playground as well)
Code
Also fails:
Expected behavior:
Maybe this should work?
Actual behavior:
Type Error:
Workaround
The following does work:
Perhaps not a bug since a workaround exists - I don't know if the workaround would be a preferred method?
The text was updated successfully, but these errors were encountered: