code: function SweetAlert() {
    // Prevent run in Node env
  
    /* istanbul ignore if */
    if (typeof window === 'undefined') {
      return;
    } // Check for the existence of Promise
  
    /* istanbul ignore if */
  
  
    if (typeof Promise === 'undefined') {
      error('This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)');
    }
  
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
  
    if (args.length === 0) {
      error('At least 1 argument is expected!');
      return false;
    }
  
    currentInstance = this;
    var outerParams = Object.freeze(this.constructor.argsToParams(args));
    Object.defineProperties(this, {
      params: {
        value: outerParams,
        writable: false,
        enumerable: true
      }
    });
  
    var promise = this._main(this.params);
  
    privateProps.promise.set(this, promise);
  }
docs: SweetAlert constructor