Skip to content

Conversation

@minggangw
Copy link
Member

@minggangw minggangw commented Jul 29, 2025

This PR corrects the parameter type of the ActionServer constructor by adding a missing goalCallback parameter to properly match the expected type signature.

  • Added goalCallback parameter to ActionServer constructor call
  • Implemented the goalCallback function with proper type annotations

Fix: #1209

@minggangw minggangw requested a review from Copilot July 29, 2025 02:21
Copy link

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 corrects the parameter type of the ActionServer constructor by adding a missing goalCallback parameter to properly match the expected type signature.

  • Added goalCallback parameter to ActionServer constructor call
  • Implemented the goalCallback function with proper type annotations

'fibonacci',
executeCallback
executeCallback,
goalCallback
Copy link

Copilot AI Jul 29, 2025

Choose a reason for hiding this comment

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

[nitpick] The goalCallback parameter is being passed to the ActionServer constructor but is defined after its usage. Consider moving the goalCallback function definition before the ActionServer instantiation to improve code readability and follow the pattern used with executeCallback.

Copilot uses AI. Check for mistakes.
@minggangw minggangw self-assigned this Jul 29, 2025
@coveralls
Copy link

Coverage Status

coverage: 84.526%. remained the same
when pulling 7f82a68 on minggangw:fix-1209
into 605eb84 on RobotWebTools:develop.

@minggangw minggangw removed their assignment Jul 29, 2025
@minggangw minggangw merged commit 88f7d8b into RobotWebTools:develop Jul 29, 2025
27 of 28 checks passed
minggangw added a commit that referenced this pull request Jul 31, 2025
This PR corrects the parameter type of the ActionServer constructor by adding a missing `goalCallback` parameter to properly match the expected type signature.

- Added `goalCallback` parameter to ActionServer constructor call
- Implemented the `goalCallback` function with proper type annotations

Fix: #1209
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.

Correct the type of GoalCallback for typescript

2 participants