diff --git a/packages/typert/protocol/src/index.ts b/packages/typert/protocol/src/index.ts index 9910ec2469..a677ede21b 100644 --- a/packages/typert/protocol/src/index.ts +++ b/packages/typert/protocol/src/index.ts @@ -98,7 +98,7 @@ export interface RemoteMethodMarker { /** Endpoint method when it differs from the implementation member. */ readonly exportName?: string /** Stream methods yield many independently validated result items. */ - readonly mode?: RemoteMethodOptions['mode'] + readonly mode?: 'stream' readonly invocation: RemoteInvocationMarker } @@ -122,7 +122,7 @@ interface RemoteInitializerContext { interface StoredRemoteMethodMarker { readonly exportName?: string - readonly mode?: RemoteMethodOptions['mode'] + readonly mode?: 'stream' readonly invocation: RemoteInvocationMarker } @@ -212,7 +212,7 @@ function remoteOptionMode(options: object): unknown { function remoteDecorator( invocation: RemoteInvocationMarker, - mode?: RemoteMethodOptions['mode'], + mode?: 'stream', exportName?: string, ): RemoteMethodDecorator { return function ( @@ -271,7 +271,7 @@ function readRemoteMethodDescriptor(prototype: object): RemoteMethodDescriptorV1 function addMarkerInitializer( context: RemoteInitializerContext, invocation: RemoteInvocationMarker, - mode?: RemoteMethodOptions['mode'], + mode?: 'stream', exportName?: string, ): void { if (context.private || context.static || typeof context.name !== 'string') { @@ -291,7 +291,7 @@ function mark( prototype: object, method: string, invocation: RemoteInvocationMarker, - mode?: RemoteMethodOptions['mode'], + mode?: 'stream', exportName?: string, ): void { const descriptor = readRemoteMethodDescriptor(prototype)