t4t5 / sweetalert

A beautiful replacement for JavaScript's "alert"
https://sweetalert.js.org
MIT License
22.4k stars 2.84k forks source link

error fixed for swal to _swal for angular 7 & above #945

Open KavishkaRajakaruna opened 3 years ago

KavishkaRajakaruna commented 3 years ago

Error fixed for the following error on angular

`ERROR in node_modules/SweetAlert/typings/sweetalert.d.ts:4:10 - error TS2403: Subsequent variable declarations must have the same type. Variable 'swal' must be of type 'typeof import("E:/projects/New folder/certistore/node_modules/SweetAlert/typings/sweetalert")', but here has type 'SweetAlert'.

4 const swal: SweetAlert;


  node_modules/SweetAlert/typings/sweetalert.d.ts:1:1
    1 import swal, { SweetAlert } from "./core";
'swal' was also declared here.`
tbishnoi commented 3 years ago

Will this be fixed anytime soon. this is pending for so long. Do anyone has a workround where we dont have to change this file.

KavishkaRajakaruna commented 2 years ago

Think anyone doesn't have any other option than to change the file.

juandps commented 2 years ago

Please merge this change