Skip to content

Commit

Permalink
couple more callback docs
Browse files Browse the repository at this point in the history
  • Loading branch information
EzraBrooks committed Nov 16, 2023
1 parent bd31b87 commit 93827cd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/core/Param.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,19 @@ class Param {
callback(value);
});
}
/**
* @callback setParamCallback
* @param {Object} response - The response from the service request.
*/
/**
* @callback setParamFailedCallback
* @param {Object} response - The response from the service request.
*/
/**
* Set the value of the param in ROS.
*
* @param {Object} value - The value to set param to.
* @param {function} callback - The callback function.
* @param {setParamCallback} callback - The callback function.
*/
set(value, callback) {
var paramClient = new Service({
Expand All @@ -69,7 +77,7 @@ class Param {
/**
* Delete this parameter on the ROS server.
*
* @param {function} callback - The callback function.
* @param {setParamCallback} callback - The callback function.
*/
delete(callback) {
var paramClient = new Service({
Expand Down

0 comments on commit 93827cd

Please sign in to comment.