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
Duplicate #19220; please put a little more effort into searching next time - you just had to put the error message into the search box or read the second page of search results for "Array.from"
Actually not really a duplicate since what you were expecting was no error - but this is the intended behavior because you provided a generic type argument arity that didn't match with any normal argument arity
TypeScript Version: 2.9.0-dev.20180502
Search Terms:
Array.from
Code
Expected behavior:
No errors
Actual behavior:
error TS2554: Expected 1-3 arguments, but got 2.
Playground Link:
https://www.typescriptlang.org/play/#src=Array.from%3C%7B%7D%3E(%5B%5D%2C%20()%20%3D%3E%20%7B%7D)%3B
Related Issues:
CC @rkirov
The text was updated successfully, but these errors were encountered: