<T>(defaultValue?: T): LocalMethod<T>Declare a local-only member (see LocalMethod). Two forms:
Hyperlink.local<T>()— the element typeTgiven explicitly (for a plain Tag contract).Hyperlink.local— bare, no(); its type is taken from the service interface in a fromService contract. Rejected where no interface type is available.
export const const local: typeof localFn & BareLocalDeclare a local-only member (see
LocalMethod
). Two forms:
Hyperlink.local<T>() — the element type T given explicitly (for a plain
Tag
contract).
Hyperlink.local — bare, no (); its type is taken from the service interface in a
fromService
contract. Rejected where no interface type is available.
local: typeof const localFn: <T>(
defaultValue?: T
) => LocalMethod<T>
Implementation of
local
's callable form (local<T>()); the public value is the branded
local
below (also usable bare).
localFn & BareLocal = var Object: ObjectConstructorProvides functionality common to all JavaScript objects.
Object.ObjectConstructor.assign<<T>(defaultValue?: T) => LocalMethod<T>, {
"~hyperlink-ts/Hyperlink/LocalMethod": "~hyperlink-ts/Hyperlink/LocalMethod";
[bareLocalSym]: true;
}>(target: <T>(defaultValue?: T) => LocalMethod<T>, source: {
"~hyperlink-ts/Hyperlink/LocalMethod": "~hyperlink-ts/Hyperlink/LocalMethod";
[bareLocalSym]: true;
}): (<T>(defaultValue?: T) => LocalMethod<T>) & {
"~hyperlink-ts/Hyperlink/LocalMethod": "~hyperlink-ts/Hyperlink/LocalMethod";
[bareLocalSym]: true;
} (+3 overloads)
Copy the values of all of the enumerable own properties from one or more source objects to a
target object. Returns the target object.
assign(const localFn: <T>(
defaultValue?: T
) => LocalMethod<T>
Implementation of
local
's callable form (local<T>()); the public value is the branded
local
below (also usable bare).
localFn, {
[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]: 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,
[const bareLocalSym: typeof bareLocalSymBrand marking the bare
local
value (used without ()): a valid
LocalMethod
whose element type is supplied by the service interface position in a
fromService
contract.
Distinct from a called local<T>() so the contract can reject a bare local that has no interface
type to resolve from.
bareLocalSym]: true as type const = trueconst,
});