Base: {
    create(...args: any[]): any;
    extend(overrides: object): any;
    mixIn(properties: object): any;
}

Base object for prototypal inheritance.

Type declaration

  • create:function
    • Extends this object and runs the init method. Arguments to create() will be passed to init().

      Parameters

      • Rest...args: any[]

      Returns any

      The new object.

      var instance = MyType.create();
      
  • extend:function
    • Creates a new object that inherits from this object.

      Parameters

      • overrides: object

        Properties to copy into the new object.

      Returns any

      The new object.

      var MyType = CryptoJS.lib.Base.extend({
      field: 'value',

      method: function () {
      }
      });
  • mixIn:function
    • Copies properties into this object.

      Parameters

      • properties: object

        The properties to mix in.

      Returns any

      MyType.mixIn({
      field: 'value'
      });