title: Can't set sweetalert options on typescript
body: <p>Installed packages:</p>
  
  <pre><code>"@angular/core": "^4.0.0"
  "typescript": "~2.3.3"
  "sweetalert": "^2.0.8"
  "@types/sweetalert": "^1.1.28"
  </code></pre>
  
  <p>How I'm using sweetalert:</p>
  
  <pre><code>import * as swal from "sweetalert";
  //...
  doSomething() {
      const options = {
          title: "Are you sure?",
          text: "Some text here!",
          type: "warning",
          showCancelButton: true,
          showConfirmButton: true
      };
      swal(options, (remove) =&gt; { });
  }
  </code></pre>
  
  <p>I'm getting these errors:</p>
  
  <ul>
  <li>VSC IntelliSense:</li>
  </ul>
  
  <blockquote>
    <p>'Argument of type '{ title: string; text: string; type: string;
    showCancelButton: boolean; showConfirmButton: boolea...' is not
    assignable to parameter of type 'Settings &amp; PromtModalSettings'.<br>
    Type '{ title: string; text: string; type: string; showCancelButton:
    boolean; showConfirmButton: boolea...' is not assignable to type
    'PromtModalSettings'.
        Types of property 'type' are incompatible.
          Type 'string' is not assignable to type 'PromtType'.' at: '101,14' source: 'ts'</p>
  </blockquote>
  
  <ul>
  <li>TypeScript compiles, but on browser console, I get this:</li>
  </ul>
  
  <blockquote>
    <p>ERROR Error: SweetAlert: Unexpected 2nd argument (function (remove) {...</p>
  </blockquote>
  
  <p>I tried setting the <code>options</code> type as <code>SweetAlert.Settings &amp; SweetAlert.AlertModalSettings</code>, but I can't access the namespace <code>SweerAlert</code>, and also tried <code>any</code>. None of them worked.</p>
  
  <p><strong>How can I set these options to sweetalert?</strong></p>
  
  <p><a href="https://github.com/slavovojacek/adbrain-typescript-definitions/blob/master/sweetalert/sweetalert.d.ts" rel="nofollow noreferrer">TS type file.</a></p>