@@ -14,7 +14,7 @@ import { StartNexusOperationInput, StartNexusOperationOutput, StartNexusOperatio
1414 *
1515 * @experimental Nexus support in Temporal SDK is experimental.
1616 */
17- export interface NexusClient < T extends nexus . ServiceDefinition > {
17+ export interface NexusServiceClient < T extends nexus . ServiceDefinition > {
1818 /**
1919 * Start a Nexus Operation and wait for its completion taking a {@link nexus.operation}.
2020 * Returns the operation's result.
@@ -104,9 +104,9 @@ export interface NexusOperationHandle<T> {
104104}
105105
106106/**
107- * Options for {@link createNexusClient }.
107+ * Options for {@link createNexusServiceClient }.
108108 */
109- export interface NexusClientOptions < T > {
109+ export interface NexusServiceClientOptions < T > {
110110 endpoint : string ;
111111 service : T ;
112112}
@@ -116,8 +116,10 @@ export interface NexusClientOptions<T> {
116116 *
117117 * @experimental Nexus support in Temporal SDK is experimental.
118118 */
119- export function createNexusClient < T extends nexus . ServiceDefinition > ( options : NexusClientOptions < T > ) : NexusClient < T > {
120- class NexusClientImpl < T extends nexus . ServiceDefinition > implements NexusClient < T > {
119+ export function createNexusServiceClient < T extends nexus . ServiceDefinition > (
120+ options : NexusServiceClientOptions < T >
121+ ) : NexusServiceClient < T > {
122+ class NexusServiceClientImpl < T extends nexus . ServiceDefinition > implements NexusServiceClient < T > {
121123 async executeOperation < O extends T [ 'operations' ] [ keyof T [ 'operations' ] ] > (
122124 operation : string | T [ 'operations' ] [ nexus . OperationKey < T [ 'operations' ] > ] ,
123125 input : nexus . OperationInput < T [ 'operations' ] [ nexus . OperationKey < T [ 'operations' ] > ] > ,
@@ -176,7 +178,7 @@ export function createNexusClient<T extends nexus.ServiceDefinition>(options: Ne
176178 }
177179 }
178180
179- return new NexusClientImpl < T > ( ) ;
181+ return new NexusServiceClientImpl < T > ( ) ;
180182}
181183
182184function startNexusOperationNextHandler ( {
0 commit comments