-
-
Notifications
You must be signed in to change notification settings - Fork 548
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
EmptyArray
type
#929
Labels
Comments
You could do it with We already have https://github.com/sindresorhus/type-fest/blob/main/source/non-empty-tuple.d.ts |
Yeah I guess this type would mostly be for completeness sake. I guess |
silverwind
added a commit
to silverwind/type-fest
that referenced
this issue
Aug 8, 2024
silverwind
added a commit
to silverwind/type-fest
that referenced
this issue
Aug 8, 2024
silverwind
added a commit
to silverwind/type-fest
that referenced
this issue
Aug 8, 2024
silverwind
added a commit
to silverwind/type-fest
that referenced
this issue
Aug 8, 2024
silverwind
added a commit
to silverwind/type-fest
that referenced
this issue
Aug 8, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is
EmptyObject
, and I think aEmptyArray
type for a strictly empty array would be useful.One use case of empty array with React to avoid re-renders because of unstable default prop:
Upvote & Fund
The text was updated successfully, but these errors were encountered: