• The mixin utility assigns the properties of a set of 'mixin' objects to the prototype of a parent object.

    Parameters

    • Parent: object

      The class to extend the new class from.

    • Rest ...mixins: Record<string, any>[]

      The objects to mix in.

    Returns object

    A new class that extends Parent and contains the mixins.

    Example

    class MyClass extends mixin(ExistingClass, evented, etc) {}
    

Generated using TypeDoc v0.24.8