| 174 | })) |
| 175 | |
| 176 | export class UsersClient extends Context.Tag("UsersClient")< |
| 177 | UsersClient, |
| 178 | RpcClient.RpcClient<RpcGroup.Rpcs<typeof UserRpcs>, RpcClientError> |
| 179 | >() { |
| 180 | static layer = Layer.scoped(UsersClient, RpcClient.make(UserRpcs)).pipe( |
| 181 | Layer.provide(AuthClient) |
| 182 | ) |
| 183 | static layerTest = Layer.scoped(UsersClient, RpcTest.makeClient(UserRpcs)).pipe( |
| 184 | Layer.provide([UsersLive, AuthLive, TimingLive, AuthClient]) |
| 185 | ) |
| 186 | } |