| 127 | it.effect("a flat client receives the payload and the request's headers, ignoring a reused stream option", () => { |
| 128 | class Flat extends Context.Service<Flat, RpcClient.RpcClient.Flat<TodoRpcs>>()("Flat") {} |
| 129 | class Echo extends UiRpc.QueryService<Echo>()("Echo", { |
| 130 | group: TodoRpcs, |
| 131 | client: Flat, |
| 132 | tag: "Echo", |
| 133 | staleTime: Infinity |
| 134 | }) {} |
| 135 | // A reused options object can carry `stream` past the types. |
| 136 | const options = { group: TodoRpcs, client: Flat, tag: "Rename", stream: true } as const |
| 137 | class Rename extends UiRpc.CommandService<Rename>()("todos/Rename", { |