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

Add support for variadic parameters in jsii-docgen #3781

Closed
garysassano opened this issue Aug 10, 2023 · 1 comment · Fixed by #4007
Closed

Add support for variadic parameters in jsii-docgen #3781

garysassano opened this issue Aug 10, 2023 · 1 comment · Fixed by #4007
Assignees
Labels
🐛 bug Something isn't working 📚 documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@garysassano
Copy link
Collaborator

garysassano commented Aug 10, 2023

I tried this:

Updated cloud.Queue.push() method to use a variadic parameter:

push(...messages: string[]): Promise<void>;

This happened:

The following documentation was generated:

inflight push(messages: str): void

I expected this:

I expected jsii-docgen to generate the following documentation instead:

inflight push(...messages: Array<str>): void

Is there a workaround?

No response

Component

Documentation

Wing Version

No response

Node.js Version

No response

Platform(s)

No response

Anything else?

No response

Community Notes

  • Please vote by adding a 👍 reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.
@garysassano garysassano added the 🐛 bug Something isn't working label Aug 10, 2023
@monadabot monadabot added this to Wing Aug 10, 2023
@github-project-automation github-project-automation bot moved this to 🆕 New - not properly defined in Wing Aug 10, 2023
@Chriscbr Chriscbr added 📚 documentation Improvements or additions to documentation good first issue Good for newcomers labels Aug 10, 2023
@staycoolcall911 staycoolcall911 moved this from 🆕 New - not properly defined to 🤝 Backlog - handoff to owners in Wing Aug 13, 2023
@tsuf239 tsuf239 self-assigned this Aug 29, 2023
@tsuf239 tsuf239 moved this from 🤝 Backlog - handoff to owners to 🏗 In progress in Wing Aug 29, 2023
@tsuf239 tsuf239 moved this from 🏗 In progress to 👀 In review in Wing Aug 29, 2023
@mergify mergify bot closed this as completed in #4007 Sep 6, 2023
mergify bot pushed a commit that referenced this issue Sep 6, 2023
closes [#3781](#3781)
<img width="951" alt="image" src="https://github.com/winglang/wing/assets/39455181/bfecb78b-812e-4483-aac6-cc5f83103f3e">

## Checklist

- [x] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/pull_requests#how-are-pull-request-titles-formatted)
- [x] Description explains motivation and solution
- [ ] Tests added (always)
- [x] Docs updated (only required for features)
- [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing

*By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Wing Sep 6, 2023
@monadabot
Copy link
Contributor

Congrats! 🚀 This was released in Wing 0.29.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 📚 documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants