@serenity-is/corelib / confirm
confirm(
message
,onYes
,options
?):Partial
<Dialog
>
string
The message to display
() => void
Callback for Yes button click
Additional options.
Partial
<Dialog
>
use confirmDialog
ConfirmOptions
confirmDialog("Are you sure you want to delete?", () => {
// do something when yes is clicked
}