From f43b073379910b74e14d7c7110d3b4a5b2b921f6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Will=20=E4=BF=9D=E5=93=A5?= <doggy.huang@gmail.com>
Date: Thu, 7 Mar 2019 20:47:52 +0800
Subject: [PATCH] Fix Type Error on swal

Fixes #890

```
ERROR in node_modules/sweetalert/typings/sweetalert.d.ts(4,9): error TS2403: Subsequent variable declarations must have the same type.  Variable 'swal' must be of type 'typeof import("C:/proj/node_modules/sweetalert/typings/sweetalert")', but here has type 'SweetAlert'.
```
---
 src/sweetalert.d.ts     | 7 +------
 typings/sweetalert.d.ts | 7 +------
 2 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/src/sweetalert.d.ts b/src/sweetalert.d.ts
index f7220ea4..ca402fa0 100644
--- a/src/sweetalert.d.ts
+++ b/src/sweetalert.d.ts
@@ -1,9 +1,4 @@
-import swal, { SweetAlert } from "./core";
-
-declare global {
-  const swal: SweetAlert;
-  const sweetAlert: SweetAlert;
-}
+import swal from "./core";
 
 export default swal;
 export as namespace swal;
diff --git a/typings/sweetalert.d.ts b/typings/sweetalert.d.ts
index f7220ea4..ca402fa0 100644
--- a/typings/sweetalert.d.ts
+++ b/typings/sweetalert.d.ts
@@ -1,9 +1,4 @@
-import swal, { SweetAlert } from "./core";
-
-declare global {
-  const swal: SweetAlert;
-  const sweetAlert: SweetAlert;
-}
+import swal from "./core";
 
 export default swal;
 export as namespace swal;