-
-
Notifications
You must be signed in to change notification settings - Fork 542
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
Like Promisable<X>
but for arrays: X | X[]
#270
Comments
Like a type MaybeArray<X> = X|Array<X>; Can't remember seeing it somewhere, but I do believe I have created such helpers in some projects. |
I'd also add the opposite of this: cast array type CastArray<X | X[]> = X[] |
+1. |
Max10240
added a commit
to Max10240/type-fest
that referenced
this issue
Aug 11, 2024
Max10240
added a commit
to Max10240/type-fest
that referenced
this issue
Aug 11, 2024
Merged
Max10240
added a commit
to Max10240/type-fest
that referenced
this issue
Aug 11, 2024
Max10240
added a commit
to Max10240/type-fest
that referenced
this issue
Aug 11, 2024
Max10240
added a commit
to Max10240/type-fest
that referenced
this issue
Aug 11, 2024
sindresorhus
added a commit
that referenced
this issue
Aug 12, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I remember seeing this type somewhere, but I can't find it. Does it exist? Is it native?
Upvote & Fund
The text was updated successfully, but these errors were encountered: