Traits Registration
Estimated reading time: less than 1 minuteRegister custom traits via maplebirch.tool.patch.addTraits().
Access via maplebirch.tool.patch.addTraits().
Trait Interface
Example
Note
The framework resolves and deduplicates trait registration internally to avoid duplicate or incorrect overwrites. The maplebirch.tool.patch.addTraits API is unchanged.
boot.json
Traits can also be registered via the framework field in boot.json:
External .json, .yaml, or .yml files are also supported:
