Interface that can be implement dynamically
A TraitBehavior is like a TypeScript interface, but can be implemented dynamically. It requires the implementors to implement TIn . Also, it can provide do a transform from TIn to TOut as common logic of the trait.
TraitBehavior
TIn
TOut
Interface that can be implement dynamically
A
TraitBehavioris like a TypeScript interface, but can be implemented dynamically. It requires the implementors to implementTIn. Also, it can provide do a transform fromTIntoTOutas common logic of the trait.