@@ -165,13 +165,9 @@ export interface WorkflowHandle<T extends Workflow = Workflow> extends BaseWorkf
165
165
) : Promise < WorkflowUpdateHandle < Ret > > ;
166
166
167
167
/**
168
- * Get a handle to an Update.
168
+ * Get a handle to an Update of this Workflow .
169
169
*/
170
- getUpdateHandle < Ret > (
171
- updateId : string ,
172
- workflowId : string ,
173
- options ?: GetWorkflowUpdateHandleOptions
174
- ) : WorkflowUpdateHandle < Ret > ;
170
+ getUpdateHandle < Ret > ( updateId : string ) : WorkflowUpdateHandle < Ret > ;
175
171
176
172
/**
177
173
* Query a running or completed Workflow.
@@ -476,7 +472,7 @@ export class WorkflowClient extends BaseClient {
476
472
477
473
/**
478
474
* Sends a signal to a running Workflow or starts a new one if not already running and immediately signals it.
479
- * Useful when you're unsure of the Workflows' run state.
475
+ * Useful when you're unsure of the Workflow's run state.
480
476
*
481
477
* @returns the runId of the Workflow
482
478
*/
@@ -799,10 +795,9 @@ export class WorkflowClient extends BaseClient {
799
795
protected createWorkflowUpdateHandle < Ret > (
800
796
updateId : string ,
801
797
workflowId : string ,
802
- options ?: GetWorkflowUpdateHandleOptions ,
798
+ workflowRunId ?: string ,
803
799
outcome ?: temporal . api . update . v1 . IOutcome
804
800
) : WorkflowUpdateHandle < Ret > {
805
- const workflowRunId = options ?. workflowRunId ;
806
801
return {
807
802
updateId,
808
803
workflowId,
@@ -1077,7 +1072,7 @@ export class WorkflowClient extends BaseClient {
1077
1072
return this . createWorkflowUpdateHandle < Ret > (
1078
1073
output . updateId ,
1079
1074
input . workflowExecution . workflowId ,
1080
- { workflowRunId : output . workflowRunId } ,
1075
+ output . workflowRunId ,
1081
1076
output . outcome
1082
1077
) ;
1083
1078
} ;
@@ -1156,12 +1151,8 @@ export class WorkflowClient extends BaseClient {
1156
1151
) ;
1157
1152
return await handle . result ( ) ;
1158
1153
} ,
1159
- getUpdateHandle < Ret > (
1160
- updateId : string ,
1161
- workflowId : string ,
1162
- options ?: GetWorkflowUpdateHandleOptions
1163
- ) : WorkflowUpdateHandle < Ret > {
1164
- return this . client . createWorkflowUpdateHandle ( updateId , workflowId , options ) ;
1154
+ getUpdateHandle < Ret > ( updateId : string ) : WorkflowUpdateHandle < Ret > {
1155
+ return this . client . createWorkflowUpdateHandle ( updateId , workflowId , runId ) ;
1165
1156
} ,
1166
1157
async signal < Args extends any [ ] > ( def : SignalDefinition < Args > | string , ...args : Args ) : Promise < void > {
1167
1158
const next = this . client . _signalWorkflowHandler . bind ( this . client ) ;
0 commit comments