-
Notifications
You must be signed in to change notification settings - Fork 511
fix(sample): include "undefined" in return union type #1302
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
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
dayongkr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Thanks for your contribution!
|
Unfortunately I cannot merge because the |
|
Since this involves a change to the interface, I haven’t merged it yet because I’d like to hear other maintainer’ opinion. I’ll leave another comment later this week. |
Since this is almost 3 months ago I just wanted to ask kindly if we can merge it @dayongkr ? |
|
Ah, this was put on hold per previous discussion with maintainers. Let me sync up and update. |
|
After thinking about it more, I think this needs to be addressed in the next major update, so I'll discuss internally about the timing of the next major release. Sorry for making you wait so long. |
sample()returnsundefinedwhen an empty array is given. This should also be reflected in the return type.