<Self, S extends Spec, R>(
_tag: HyperlinkTag<Self, S>,
impl: WithRequirement<ImplOf<S>, R>,
workerContext: Context.Context<R>
): BuiltHyperlink<S, R>Pair a pre-provide impl with the worker context captured at build time. Pass tag so the concrete
Spec S is pinned for BuiltHyperlink typing.
Source src/Hyperlink.ts:13489 lines
export const const builtHyperlink: <
Self,
S extends Spec,
R
>(
_tag: HyperlinkTag<Self, S>,
impl: WithRequirement<ImplOf<S>, R>,
workerContext: Context.Context<R>
) => BuiltHyperlink<S, R>
Pair a pre-provide impl with the worker context captured at build time. Pass tag so the concrete
Spec
S is pinned for
BuiltHyperlink
typing.
builtHyperlink = <function (type parameter) Self in <Self, S extends Spec, R>(_tag: HyperlinkTag<Self, S>, impl: WithRequirement<ImplOf<S>, R>, workerContext: Context.Context<R>): BuiltHyperlink<S, R>Self, function (type parameter) S in <Self, S extends Spec, R>(_tag: HyperlinkTag<Self, S>, impl: WithRequirement<ImplOf<S>, R>, workerContext: Context.Context<R>): BuiltHyperlink<S, R>S extends Spec, function (type parameter) R in <Self, S extends Spec, R>(_tag: HyperlinkTag<Self, S>, impl: WithRequirement<ImplOf<S>, R>, workerContext: Context.Context<R>): BuiltHyperlink<S, R>R>(
_tag: HyperlinkTag<Self, S>(parameter) _tag: {
groupId: string;
description: string | undefined;
key: Identifier;
of: (this: void, self: Simplify<{ readonly [K in keyof S]: S[K] extends FromLocalMethod<infer M> ? InjectLocal<M, Self> : S[K] extends LocalMethod<infer T> ? LocalEffect<T, never, Self> : S[K] extends { readonly _tag: 'constant'; } ? SuccessOf…;
context: (self: Simplify<{ readonly [K in keyof S]: S[K] extends FromLocalMethod<infer M> ? InjectLocal<M, Self> : S[K] extends LocalMethod<infer T> ? LocalEffect<T, never, Self> : S[K] extends { readonly _tag: 'constant'; } ? SuccessOf<AsMethod<S[…;
use: (f: (service: Simplify<{ readonly [K in keyof S]: S[K] extends FromLocalMethod<infer M> ? InjectLocal<M, Self> : S[K] extends LocalMethod<infer T> ? LocalEffect<T, never, Self> : S[K] extends { readonly _tag: 'constant'; } ? SuccessOf<AsMe…;
useSync: (f: (service: Simplify<{ readonly [K in keyof S]: S[K] extends FromLocalMethod<infer M> ? InjectLocal<M, Self> : S[K] extends LocalMethod<infer T> ? LocalEffect<T, never, Self> : S[K] extends { readonly _tag: 'constant'; } ? SuccessOf<AsMe…;
Identifier: Identifier;
Service: Shape;
stack: string | undefined;
pipe: { <A>(this: A): A; <A, B = never>(this: A, ab: (_: A) => B): B; <A, B = never, C = never>(this: A, ab: (_: A) => B, bc: (_: B) => C): C; <A, B = never, C = never, D = never>(this: A, ab: (_: A) => B, bc: (_: B) => C, cd: (_: C) => D): D; <…;
toString: () => string;
toJSON: () => unknown;
}
_tag: interface HyperlinkTag<Self, S extends Spec, Svc = Simplify<{ readonly [K in keyof S]: S[K] extends FromLocalMethod<infer M> ? InjectLocal<M, Self> : S[K] extends LocalMethod<infer T> ? LocalEffect<...> : S[K] extends { ...; } ? SuccessOf<...> : S[K] extends { ...; } ? Subscribable<...> : S[K] extends { ...; } ? ClientMethod<...> : S[K] extends Spec ? Simplify<...> : never; }>>The type of a resource tag carrying spec S — what
Hyperlink.Tag
/ a
Hyperlink.tagFor
factory produce (and what you extend). Lets a consumer write
<S extends Spec>(tag: HyperlinkTag<Self, S>) and read the spec through named types
(
specOf
/
groupOf
) instead of a Parameters<typeof specOf> workaround.