sweetalert icon indicating copy to clipboard operation
sweetalert copied to clipboard

fixing swal constant error

Open juandps opened this issue 2 years ago • 1 comments

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

juandps avatar Mar 12 '22 22:03 juandps

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

abenhamdine avatar Aug 29 '23 10:08 abenhamdine