Skip to content

accept()

Accept action to perform on dialogs

Examples

prompt('Message', async () => await accept('Something'))
prompt('Message', async () => await accept())

Parameters

Name Type Description
text string Expected text of the dialog (optional) Default: "".

Returns

Type Description
Promise<void> Resolves when dialog is accepted