key
key(
value):KeyValue
Defined in: src/attr/values.ts:349
A reference to another entity, indexed for equality.
References are weak: nothing checks that the target exists when you write it, and a reference to a deleted or expired entity is allowed to dangle.
Parameters
Section titled “Parameters”A 32-byte entity key, as 0x hex or raw bytes.
`0x${string}` | Uint8Array<ArrayBufferLike>
Returns
Section titled “Returns”Throws
Section titled “Throws”If the value is not exactly 32 bytes.
Example
Section titled “Example”key(parentEntityKey)