• Helper to extend an existing class with new properties.

    Parameters

    • clazzOrObject: any

      the clazz to extend.

    • definitions: Record<string | symbol, any>

      the properties specification.

    Returns void

    class MyClazz extends Mutable {

    }
    properties(MyClazz, {
    msg: {
    value: "test"
    }
    });
    let o = new MyClazz({
    msg: "test1"
    });