-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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'. ```
- Loading branch information
Showing
2 changed files
with
0 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,4 @@ | ||
import swal, { SweetAlert } from "./core"; | ||
|
||
declare global { | ||
const swal: SweetAlert; | ||
const sweetAlert: SweetAlert; | ||
} | ||
|
||
export default swal; | ||
export as namespace swal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,4 @@ | ||
import swal, { SweetAlert } from "./core"; | ||
|
||
declare global { | ||
const swal: SweetAlert; | ||
const sweetAlert: SweetAlert; | ||
} | ||
|
||
export default swal; | ||
export as namespace swal; |