• Evented Mixin function. Creates new clazz which inherits from a given clazz and extends it with on/emit functions.

    Type Parameters

    • BaseType extends Constructor<any, any>

    Parameters

    Returns Constructor<InstanceType<BaseType> & Evented<any>, ConstructorParameters<BaseType>>

    class which inherits from Base.

    Example

    import { EventedMixin } from "apprt-core/Events";

    const MyClass = EventedMixin(class {
    trigger(){
    this.emit("changed");
    }
    });

Generated using TypeDoc