Skip to content

Commit 02fd217

Browse files
committed
Converted CancelCallback fn's goal param to an optional param
1 parent 59e700d commit 02fd217

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/action_server.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ declare module 'rclnodejs' {
8585
goalHandle: ServerGoalHandle<T>
8686
) => void;
8787
type CancelCallback<T extends TypeClass<ActionTypeClassName>> = (
88-
goalHandle: ServerGoalHandle<T>
88+
goalHandle?: ServerGoalHandle<T>
8989
) => Promise<CancelResponse> | CancelResponse;
9090

9191
interface ActionServerOptions extends Options<ActionQoS> {

0 commit comments

Comments
 (0)