Skip to content

Commit 6bda43b

Browse files
committed
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'. ```
1 parent 7dc94fd commit 6bda43b

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/sweetalert.d.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
import swal, { SweetAlert } from "./core";
22

3-
declare global {
4-
const swal: SweetAlert;
5-
const sweetAlert: SweetAlert;
6-
}
7-
83
export default swal;
94
export as namespace swal;

typings/sweetalert.d.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
import swal, { SweetAlert } from "./core";
22

3-
declare global {
4-
const swal: SweetAlert;
5-
const sweetAlert: SweetAlert;
6-
}
7-
83
export default swal;
94
export as namespace swal;

0 commit comments

Comments
 (0)