map.apps Bundle APIs 4.20.0
    Preparing search index...

    Function properties

    • 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"
      });