Describe a trait so json-dom knows what it is at runtime: the properties it puts on an item (so they can be left out
of json when they only make sense where the item lives), and the defaults a new item gets. Types are added
separately, by merging into TraitRegistry.
Parameters
name: string
The name of the trait, prefixed by the package which defines it: matrix.row
Describe a trait so json-dom knows what it is at runtime: the properties it puts on an item (so they can be left out of json when they only make sense where the item lives), and the defaults a new item gets. Types are added separately, by merging into TraitRegistry.