A fromService local member as it sits in the resolved spec: a LocalMethod that
additionally carries the service interface's member type M, so ServiceOf surfaces it via
InjectLocal (its own Effect/function + Local) instead of the value-obtain
LocalEffect a plain local<T>() gets. Type-only; at runtime it's an ordinary bare
local.
export interface interface FromLocalMethod<M>A
fromService
local member as it sits in the resolved spec: a
LocalMethod
that
additionally carries the service interface's member type M, so
ServiceOf
surfaces it via
InjectLocal
(its own Effect/function + Local) instead of the value-obtain
LocalEffect
a plain local<T>() gets. Type-only; at runtime it's an ordinary bare
local
.
FromLocalMethod<function (type parameter) M in FromLocalMethod<M>M> extends interface LocalMethod<T>A local-only member of a resource contract — built by
Hyperlink.local
. It is
not part of the wire contract (no schema, no rpc): use it for things that can't cross
RPC simply (a returned function, a raw Fiber/Scope/Ref, a callback). Its declared
type T is given directly. In the service it surfaces as
Effect<T, never, Local<Self>> — you yield* it to obtain the value, which requires the
local layer (
Local
).
LocalMethod<function (type parameter) M in FromLocalMethod<M>M> {
readonly [const fromLocalSym: typeof fromLocalSymfromLocalSym]: function (type parameter) M in FromLocalMethod<M>M;
}