At this level
pub.chive.richtext · 2- pub.chive.richtext.defs defs Shared definitions for unified rich text in Chive. All rich text content (abstracts, review bodies, annotation bodies, titles) references these types.
- pub.chive.richtext.facets defs $type is the protocol-level union discriminator; the Lexicon runtime supplies and checks it. Declaring it as an ordinary property made the code generator emit it twice and produced a duplicate-identifier error in every generated file for these defs — invisible while @ts-nocheck was applied to the whole generated tree.