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;