-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Multiple optional function arguments #2289
Comments
I think it works as expected. You need to add an overload for this to work |
Shouldn't this be documented somewhere though (even if it works as expected)? |
@vkurchatkin is right on both counts, this is working as designed and you might be looking for function overloads. You might also be looking for union types, i.e., Contributions to the docs are very welcome! |
9 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Test
Actual Result
Expected Result
I assume it should not error for the following uses:
The text was updated successfully, but these errors were encountered: