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

fix: accept variadic arguments after optional arguments #307

Merged
merged 2 commits into from
Nov 9, 2018

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Nov 9, 2018

The following type signature is valid:

function(optional?: string, ...args: string[])

The function can be called with anywhere from 0-infinity arguments.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

The following type signature is valid:

    function(optional?: string, ...args: string[])

The function can be called with anywhere from 0-infinity arguments.
@rix0rrr rix0rrr merged commit c1af1d6 into master Nov 9, 2018
@rix0rrr rix0rrr deleted the huijbers/variadic-after-optional branch November 9, 2018 12:50
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 this pull request may close these issues.

2 participants