UNPKG

sweetalert2

Version:

A beautiful, responsive, customizable and accessible (WAI-ARIA) replacement for JavaScript's popup boxes, supported fork of sweetalert

11 lines (10 loc) 276 B
/** * Main method to create a new SweetAlert2 popup * * @param {...SweetAlertOptions} args * @returns {Promise<SweetAlertResult>} */ export function fire(...args) { const Swal = this // eslint-disable-line @typescript-eslint/no-this-alias return new Swal(...args) }