Skip to content

@temporary-escape/mod-sdk / LabelValue

Class: LabelValue ​

Defined in: label-value.ts:8

Mirrors the engine's LabelValue variant (string | int64 | bool). The engine encodes it as the bare value, so this class overrides the generated serialization rather than using the schema transform.

Extends ​

Constructors ​

Constructor ​

ts
new LabelValue(): LabelValue;

Returns ​

LabelValue

Inherited from ​

Serializable.constructor

Properties ​

PropertyTypeDefault valueDefined in
boolValueboolfalselabel-value.ts:12
intValuenumber0label-value.ts:11
kindnumber0label-value.ts:9
stringValuestring""label-value.ts:10

Methods ​

pack() ​

ts
pack(enc: CborEncoder): void;

Defined in: label-value.ts:14

Parameters ​

ParameterType
encCborEncoder

Returns ​

void

Overrides ​

Serializable.pack


unpack() ​

ts
unpack(dec: CborVisitor): void;

Defined in: label-value.ts:26

Parameters ​

ParameterType
decCborVisitor

Returns ​

void

Overrides ​

Serializable.unpack