@arcmantle/library
    Preparing search index...

    Function compose

    • A fluent interface to apply a list of mixins to a superclass.

      class X extends compose(BaseClass).with(A, B, C) {}
      

      The mixins are applied in order to the superclass, so the prototype chain will be: X->C'->B'->A'->BaseClass.

      This is purely a convenience function. The above example is equivalent to:

      class X extends C(B(A(BaseClass))) {}
      

      Type Parameters

      Parameters

      • Optionalsuperclass: TBase

      Returns MixinBuilder<TBase>