@robbiemu/handy-typescript

@robbiemu/handy-typescript / Modules / Mixin

Interface: Mixin

decorator to mixin behaviors example:

  abstract class Behavior {
    method() {}
  }

  interface Specimen extends Behavior {}

  @Mixin(Behavior)
  class Specimen {}

  //..

  const specimen = new Specimen()
  specimen.method()

Param

classes to mix in to the decorated class

Table of contents

Constructors

Properties

Constructors

constructor

constructor: Object

Properties

postConstructor

Optional postConstructor: Function[]

Defined in

src/decorators/mixin.decorator.ts:22