Browse Source

fix(api-gateway): compose scoped remote fixture types

imccyu 2 months ago
parent
commit
8bbbb6fe59
1 changed files with 4 additions and 1 deletions
  1. 4 1
      packages/api/gateway/tests/client.spec.ts

+ 4 - 1
packages/api/gateway/tests/client.spec.ts

@@ -4,6 +4,7 @@ import { z } from 'zod'
 import type { ConnectionHandle } from '@deepseek-ai/dsh-client-connection/client'
 import type {
   InvocationDescriptor,
+  TypeRTClientRemote,
   TypeRTContext,
   TypeRTRemoteScopeApi,
   TypeRTRemoteNamespace,
@@ -38,7 +39,9 @@ declare module '@deepseek-ai/dsh-type-meta' {
 
 }
 
-type FixtureContext = Omit<Context, 'remote'> & { readonly remote: TypeRTRemoteScopeApi<'fixture'> }
+type FixtureContext = Omit<Context, 'remote'> & {
+  readonly remote: TypeRTClientRemote & TypeRTRemoteScopeApi<'fixture'>
+}
 
 const idSchema = z.string().min(1)
 const requestSchema = z.object({ objective: z.string().min(1) })