t4t5 / sweetalert

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

const swal: SweetAlert; #984

Open juandps opened 2 years ago

juandps commented 2 years ago

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.
allexwentworthok commented 2 years ago

@juandps @nixta @cmingxu They're solve this problem???