<ApiId extends string, Groups extends HttpApiGroup.Constraint, Name extends string>(api: HttpApiType.HttpApi<ApiId, Groups>, config: HttpApiHyperlinkConfig<ApiId, Groups, Name>): Context.Service<Simplify<{ readonly [Group in Extract<Groups, { readonly topLevel: false; }> as HttpApiGroup.Identifier<Group>]: HttpApiClient.Client<Groups extends HttpApiGroup.Constraint, E = never, R = never>.GroupByEndpoint<Group, never, never>; } & HttpApiClient.Client<Groups extends HttpApiGroup.Constraint, E = never, R = never>.TopLevelMethods<Groups, never, never>>, Simplify<{ readonly [Group in Extract<Groups, { readonly topLevel: false; }> as HttpApiGroup.Identifier<Group>]: HttpApiClient.Client<Groups extends HttpApiGroup.Constraint, E = never, R = never>.GroupByEndpoint<Group, never, never>; } & HttpApiClient.Client.TopLevelMethods<Groups, never, never>>> & { layer: Layer.Layer<Simplify<{ readonly [Group in Extract<Groups, { readonly topLevel: false; }> as HttpApiGroup.Identifier<Group>]: HttpApiClient.Client.GroupByEndpoint<Group, never, never>; } & HttpApiClient.Client.TopLevelMethods<Groups, never, never>>, never, HttpClient.HttpClient | Exclude<MiddlewareClient<Middleware<HttpApiGroup.Endpoints<Groups>>>, Scope.Scope>>; }Functional equivalent of Service — returns a tag value with .layer.
constructorsService
Source src/HttpApiHyperlink.ts:4371 lines
export const const make: <
ApiId extends string,
Groups extends HttpApiGroup.Constraint,
Name extends string
>(
api: HttpApiType.HttpApi<ApiId, Groups>,
config: HttpApiHyperlinkConfig<
ApiId,
Groups,
Name
>
) => Context.Service<
Simplify<
{
readonly [Group in Extract<
Groups,
{ readonly topLevel: false }
> as HttpApiGroup.Identifier<Group>]: HttpApiClient.Client.GroupByEndpoint<
Group,
never,
never
>
} & HttpApiClient.Client.TopLevelMethods<
Groups,
never,
never
>
>,
Simplify<
{
readonly [Group in Extract<
Groups,
{ readonly topLevel: false }
> as HttpApiGroup.Identifier<Group>]: HttpApiClient.Client.GroupByEndpoint<
Group,
never,
never
>
} & HttpApiClient.Client.TopLevelMethods<
Groups,
never,
never
>
>
> & {
layer: Layer.Layer<
Simplify<
{
readonly [Group in Extract<
Groups,
{ readonly topLevel: false }
> as HttpApiGroup.Identifier<Group>]: HttpApiClient.Client.GroupByEndpoint<
Group,
never,
never
>
} & HttpApiClient.Client.TopLevelMethods<
Groups,
never,
never
>
>,
unknown,
unknown
>
}
Functional equivalent of
Service
— returns a tag value with .layer.
make = function makeHttpApiHyperlink<
ApiId extends string,
Groups extends HttpApiGroup.Constraint,
Name extends string
>(
api: HttpApiType.HttpApi<ApiId, Groups>,
config: HttpApiHyperlinkConfig<
ApiId,
Groups,
Name
>
): Context.Service<
Simplify<
{
readonly [Group in Extract<
Groups,
{ readonly topLevel: false }
> as HttpApiGroup.Identifier<Group>]: HttpApiClient.Client.GroupByEndpoint<
Group,
never,
never
>
} & HttpApiClient.Client.TopLevelMethods<
Groups,
never,
never
>
>,
Simplify<
{
readonly [Group in Extract<
Groups,
{ readonly topLevel: false }
> as HttpApiGroup.Identifier<Group>]: HttpApiClient.Client.GroupByEndpoint<
Group,
never,
never
>
} & HttpApiClient.Client.TopLevelMethods<
Groups,
never,
never
>
>
> & {
layer: Layer.Layer<
Simplify<
{
readonly [Group in Extract<
Groups,
{ readonly topLevel: false }
> as HttpApiGroup.Identifier<Group>]: HttpApiClient.Client.GroupByEndpoint<
Group,
never,
never
>
} & HttpApiClient.Client.TopLevelMethods<
Groups,
never,
never
>
>,
unknown,
unknown
>
}
makeHttpApiHyperlink;