Closed alex-osman closed 6 years ago
Fixes #763: Button typings were not full
Added typings for all valid combinations.
Allows for variations of the following:
swal({ buttons: [true, true], // booleans buttons: ['Stay on this page', 'Continue'], // strings buttons: [true, 'Delete'], // both buttons: { // ButtonList cancel: true, // boolean confirm: { // ButtonOptions .... } } })
Please made this changes I am getting the same issue on TypeScript
bump @t4t5
Thx!
Issue
Fixes #763: Button typings were not full
Solution
Added typings for all valid combinations.
Allows for variations of the following: