sweetalert icon indicating copy to clipboard operation
sweetalert copied to clipboard

error fixed for swal to _swal for angular 7 & above

Open KavishkaRajakaruna opened this issue 4 years ago • 3 comments

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.`

KavishkaRajakaruna avatar Oct 19 '20 10:10 KavishkaRajakaruna

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.

tbishnoi avatar Jun 07 '21 14:06 tbishnoi

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

KavishkaRajakaruna avatar Jul 25 '21 17:07 KavishkaRajakaruna

Please merge this change

juandps avatar Mar 12 '22 21:03 juandps