t4t5 / sweetalert

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

fixing swal constant error #985

Open juandps opened 2 years ago

juandps commented 2 years ago

I'm fixing this issue:

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("/Users/juan/bookifiweb/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

by changing the swal name

abenhamdine commented 1 year ago

duplicate of https://github.com/t4t5/sweetalert/pull/935 ?