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).
export interface 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) T in LocalMethod<T>T> {
readonly [const LocalMethodTypeId: "~hyperlink-ts/Hyperlink/LocalMethod"Identity brand for a
LocalMethod
(Effect-style string TypeId) — distinguishes an off-wire
local member from a wire
Method
.
LocalMethodTypeId]: typeof const LocalMethodTypeId: "~hyperlink-ts/Hyperlink/LocalMethod"Identity brand for a
LocalMethod
(Effect-style string TypeId) — distinguishes an off-wire
local member from a wire
Method
.
LocalMethodTypeId;
/** Phantom default at declaration — type-level / documentation; not on the wire. */
readonly LocalMethod<T>.value?: T | undefinedPhantom default at declaration — type-level / documentation; not on the wire.
value?: function (type parameter) T in LocalMethod<T>T;
}