Collected sources and patterns will appear here. Add from search or the patterns library.
ContractMetadata -> DiscriminatedTypeScriptType
Inject a literal metadata property representing the contract name into every generated interface wrapper.
Problem it solves
Varying contract types cannot be easily narrowed or discriminated within complex TypeScript union structures.
Consumes
Emits
The real projects this mechanism was found in. Attribution is the point — this is how the best teams actually do it.