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

Proposal: UnknownArray #739

Closed
Emiyaaaaa opened this issue Nov 3, 2023 · 1 comment · Fixed by #740
Closed

Proposal: UnknownArray #739

Emiyaaaaa opened this issue Nov 3, 2023 · 1 comment · Fixed by #740

Comments

@Emiyaaaaa
Copy link
Collaborator

Emiyaaaaa commented Nov 3, 2023

Hi @sindresorhus

like UnknownRecord. All array type(e.x. ['foo'], readonly string[], Array<number>)can assign to UnknownArray

It's also a helpful type for other type.

type UnknownArray = readonly unknown[]

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
@Emiyaaaaa Emiyaaaaa changed the title Proposal: UnkownArray Proposal: UnknownArray Nov 3, 2023
@sindresorhus
Copy link
Owner

Go for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants