Value-type companion for the Tag interface: an interface plus a merged const with a handful of members. It stays small and must not import the encode/format graph.
Tag
const
Create a Tag from its numeric value, optionally with a name.
Tag.from(1, "date");Tag.from(12345); Copy
Tag.from(1, "date");Tag.from(12345);
Optional
Compare two tags for equality: compares by value only (normalizing number vs bigint) and ignores the optional name.
value
number
bigint
name
Value-type companion for the
Taginterface: an interface plus a mergedconstwith a handful of members. It stays small and must not import the encode/format graph.