@scml/mod-sweet-alert2
TypeScript type definitions for SweetAlert2 mod, wrapping SweetAlert2 for SugarCube mod use.
Installation
Quick Start
Add type reference
Use global instance
modSweetAlert2Mod is mounted on window.
Global Types global
Subpath Exports
API Reference
SweetAlert2Mod class
Provides fire (typeof Swal.fire), fireWithOptions(options), and Swal (typeof SweetAlert2).
Type Definition Source
INFO
- Upstream: https://github.com/Lyoko-Jeremie/SweetAlert2Mod
- Default branch: master
- Build:
pnpm run download && pnpm run build
