Hyperlinkv0.9.0-beta.0

Gate

Gate.httpApiClientServiceconstsrc/internal/httpApiClient.ts:477
<Self>(): <
  ApiId extends string,
  Groups extends HttpApiGroup.Constraint,
  const Name extends string
>(
  name: Name,
  api: HttpApiType.HttpApi<ApiId, Groups>,
  config?: Omit<HttpApiClientConfig<ApiId, Groups, Name>, "name">
) => Context.ServiceClass<
  Self,
  Name,
  EffectHttpApiClient.Client<Groups>
> & {
  readonly layer: Layer.Layer<
    Self,
    never,
    HttpClient.HttpClient | Scope.Scope
  >
}

Class factory: declare a typed HttpApi client with a baked-in .layer.

constructors
export const Service = httpApiClientService;