Skip to content

Commit 91bb572

Browse files
committed
test(devframe): refresh API snapshots for ScopedRpcFn scope typing
1 parent fb7f83c commit 91bb572

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

tests/__snapshots__/tsnapi/devframe/client.snapshot.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,17 @@ export interface DevframeScopedClientRpc<NS extends string = string> {
6161
readonly namespace: NS;
6262
register: (_: RpcFunctionDefinition<string, any, any, any, any, any, DevframeRpcContext>) => void;
6363
call: {
64-
<T extends keyof ScopedServerFunctions<NS> & string>(_: T, ..._: Parameters<Extract<ScopedServerFunctions<NS>[T], AnyRpcFn>>): Promise<Awaited<ReturnType<Extract<ScopedServerFunctions<NS>[T], AnyRpcFn>>>>;
64+
<T extends keyof ScopedServerFunctions<NS> & string>(_: T, ..._: Parameters<ScopedRpcFn<DevframeRpcServerFunctions, NS, T>>): Promise<Awaited<ReturnType<ScopedRpcFn<DevframeRpcServerFunctions, NS, T>>>>;
6565
<T extends keyof DevframeRpcServerFunctions & string>(_: T, ..._: Parameters<Extract<DevframeRpcServerFunctions[T], AnyRpcFn>>): Promise<Awaited<ReturnType<Extract<DevframeRpcServerFunctions[T], AnyRpcFn>>>>;
6666
(_: string, ..._: any[]): Promise<any>;
6767
};
6868
callEvent: {
69-
<T extends keyof ScopedServerFunctions<NS> & string>(_: T, ..._: Parameters<Extract<ScopedServerFunctions<NS>[T], AnyRpcFn>>): void;
69+
<T extends keyof ScopedServerFunctions<NS> & string>(_: T, ..._: Parameters<ScopedRpcFn<DevframeRpcServerFunctions, NS, T>>): void;
7070
<T extends keyof DevframeRpcServerFunctions & string>(_: T, ..._: Parameters<Extract<DevframeRpcServerFunctions[T], AnyRpcFn>>): void;
7171
(_: string, ..._: any[]): void;
7272
};
7373
callOptional: {
74-
<T extends keyof ScopedServerFunctions<NS> & string>(_: T, ..._: Parameters<Extract<ScopedServerFunctions<NS>[T], AnyRpcFn>>): Promise<Awaited<ReturnType<Extract<ScopedServerFunctions<NS>[T], AnyRpcFn>>> | undefined>;
74+
<T extends keyof ScopedServerFunctions<NS> & string>(_: T, ..._: Parameters<ScopedRpcFn<DevframeRpcServerFunctions, NS, T>>): Promise<Awaited<ReturnType<ScopedRpcFn<DevframeRpcServerFunctions, NS, T>>> | undefined>;
7575
<T extends keyof DevframeRpcServerFunctions & string>(_: T, ..._: Parameters<Extract<DevframeRpcServerFunctions[T], AnyRpcFn>>): Promise<Awaited<ReturnType<Extract<DevframeRpcServerFunctions[T], AnyRpcFn>>> | undefined>;
7676
(_: string, ..._: any[]): Promise<any>;
7777
};

tests/__snapshots__/tsnapi/devframe/index.snapshot.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export { RpcStreamingChannelOptions }
6868
export { RpcStreamingHost }
6969
export { ScopedBroadcastOptions }
7070
export { ScopedClientFunctions }
71+
export { ScopedRpcFn }
7172
export { ScopedServerFunctions }
7273
export { ScopedSharedStates }
7374
export { SettingsForNamespace }

tests/__snapshots__/tsnapi/devframe/types.snapshot.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export { RpcStreamingChannelOptions }
6464
export { RpcStreamingHost }
6565
export { ScopedBroadcastOptions }
6666
export { ScopedClientFunctions }
67+
export { ScopedRpcFn }
6768
export { ScopedServerFunctions }
6869
export { ScopedSharedStates }
6970
export { SettingsForNamespace }

0 commit comments

Comments
 (0)