Values: data that can be serialised, the only data a data bag, an event, a
reason's details or global metadata holds, and the type tokens that name
the type a request or a read of the data bag checks a value against.
importassertfrom"node:assert/strict"; importtype { PlainValue, Value } from"itinera/value";
assert.equal(kind(1250), "number"); assert.equal(kind(["tea", newPayment(1250)]), "list"); assert.equal(kind({ order:"R-1", payment:newPayment(1250) }), "object"); // @ts-expect-error: a Date is not a value kind(newDate());
Values: data that can be serialised, the only data a data bag, an event, a reason's details or global metadata holds, and the type tokens that name the type a request or a read of the data bag checks a value against.