-
-
Notifications
You must be signed in to change notification settings - Fork 575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arrayable
is unusable
#952
Comments
Seems like a typescript bug about Maybe we can remove |
I agree. After all, it's called |
But the reason for adding |
Yes, I know that, which is why I was fine when @sindresorhus suggested I add the |
Initially reported in #935 (comment)
In short:
function castArray<T>(a: Arrayable<T>): T[]
is hard to typeDemo
any[]
, losing the type information providedDemo
cc @Max10240 let's continue here
Upvote & Fund
The text was updated successfully, but these errors were encountered: