declare namespace ApiRpcClient {
type ApiRpcClientShape = // what goes here?
}
export class ApiRpcClient extends Context.Tag("ApiRpcClient")<
ApiRpcClient,
ApiRpcClient.ApiRpcClientShape
>() {}
export const ApiRpcClientLayer = Layer.scoped(
ApiRpcClient,
Effect.gen(function* () {
const client = yield* RpcClient.make(ApiRpc);
return ApiRpcClient.of(
client,
);
}),
)
declare namespace ApiRpcClient {
type ApiRpcClientShape = // what goes here?
}
export class ApiRpcClient extends Context.Tag("ApiRpcClient")<
ApiRpcClient,
ApiRpcClient.ApiRpcClientShape
>() {}
export const ApiRpcClientLayer = Layer.scoped(
ApiRpcClient,
Effect.gen(function* () {
const client = yield* RpcClient.make(ApiRpc);
return ApiRpcClient.of(
client,
);
}),
)