Skip to content
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

Open
fregante opened this issue Sep 2, 2024 · 0 comments
Open

Arrayable is unusable #952

fregante opened this issue Sep 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@fregante
Copy link
Collaborator

fregante commented Sep 2, 2024

Initially reported in #935 (comment)

In short:

  • function castArray<T>(a: Arrayable<T>): T[] is hard to type
    Demo
  • The code example in the type's source produces any[], losing the type information provided
    Demo
    Screenshot 1

cc @Max10240 let's continue here

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • The funding will be given to active contributors.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@fregante fregante added the bug Something isn't working label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant