Download .opencode/node_modules/effect/dist/unstable/rpc/RpcTest.d.ts from Chenloong999/opencode-data: direct link, hf CLI and curl.
- Browser
- Download file 1.28 kB
-
https://huggingface.co/datasets/Chenloong999/opencode-data/resolve/main/.opencode/node_modules/effect/dist/unstable/rpc/RpcTest.d.ts
- Command line
-
hf download hf://datasets/Chenloong999/opencode-data/.opencode/node_modules/effect/dist/unstable/rpc/RpcTest.d.ts
-
curl -L -o RpcTest.d.ts https://huggingface.co/datasets/Chenloong999/opencode-data/resolve/main/.opencode/node_modules/effect/dist/unstable/rpc/RpcTest.d.ts
1.28 kB
| /** | |
| * In-memory test harness for RPC groups. | |
| * | |
| * `RpcTest` connects a generated client directly to `RpcServer` handlers for | |
| * the same `RpcGroup`. It uses the no-serialization path, so requests, | |
| * responses, stream chunks, acknowledgements, interrupts, headers, and | |
| * middleware metadata travel through the normal client/server machinery without | |
| * opening HTTP, socket, worker, or serializer infrastructure. | |
| * | |
| * @since 4.0.0 | |
| */ | |
| import * as Effect from "../../Effect.ts"; | |
| import type * as Scope from "../../Scope.ts"; | |
| import type * as Rpc from "./Rpc.ts"; | |
| import * as RpcClient from "./RpcClient.ts"; | |
| import type * as RpcGroup from "./RpcGroup.ts"; | |
| /** | |
| * Creates an in-memory RPC client for a group, backed by the group's handlers | |
| * from the environment and using the no-serialization test transport. | |
| * | |
| * @category constructors | |
| * @since 4.0.0 | |
| */ | |
| export declare const makeClient: <Rpcs extends Rpc.Any, const Flatten extends boolean = false>(group: RpcGroup.RpcGroup<Rpcs>, options?: { | |
| readonly flatten?: Flatten | undefined; | |
| }) => Effect.Effect<Flatten extends true ? RpcClient.RpcClient.Flat<Rpcs> : RpcClient.RpcClient<Rpcs>, never, Scope.Scope | Rpc.ToHandler<Rpcs> | Rpc.Middleware<Rpcs> | Rpc.MiddlewareClient<Rpcs>>; | |
| //# sourceMappingURL=RpcTest.d.ts.map |