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.

Type Parameters

  • TIn extends {
        [key: string]: unknown;
    }
  • TOut extends {
        [key: string]: unknown;
    } = TIn

Constructors

Properties

Constructors

Properties

ownerSpace: ComponentSpace