Skip to content

Events argument name not printed in the generated documentation#289

Merged
vladimir-rangelov merged 1 commit into
next-bidirectionalfrom
fix/events-argument-name-not-printed
Jan 26, 2026
Merged

Events argument name not printed in the generated documentation#289
vladimir-rangelov merged 1 commit into
next-bidirectionalfrom
fix/events-argument-name-not-printed

Conversation

@vladimir-rangelov
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings January 26, 2026 08:55
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes an issue where event/callback argument names were not being printed in generated documentation for JavaScript. The fix adds the result name to callback parameter signatures, ensuring they include both the parameter name and type (e.g., value: string) instead of just the type.

Changes:

  • Updated the JavaScript result-callback template to include the parameter name along with the type
  • Modified the getMethodSignatureResult function to replace both the name and type placeholders in templates

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
languages/javascript/templates/result-callback/default.ts Added ${method.result.name}: prefix to include the argument name in callback signatures
src/macrofier/types.mjs Added replacement for ${method.result.name} placeholder to populate the template with the actual result name

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vladimir-rangelov vladimir-rangelov merged commit 3e4d7b4 into next-bidirectional Jan 26, 2026
7 of 8 checks passed
@vladimir-rangelov vladimir-rangelov deleted the fix/events-argument-name-not-printed branch January 26, 2026 11:41
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants