Skip to content
Interfacegatewayv0.7.5

ConfirmOptions

Options shared by both confirmation forms.

interface ConfirmOptions

ephemeral

Whether the prompt is ephemeral. Only the invoking user can act on it either way, a non-invoker's click is ignored.

ephemeral?: boolean

Default:true

onCancel

Shown in place of the prompt when the user cancels. Absent removes the prompt.

onCancel?: Outcome

onConfirm

Shown in place of the prompt when the user confirms. Absent removes the prompt.

onConfirm?: Outcome

onTimeout

Shown in place of the prompt when the prompt times out. Absent removes the prompt.

onTimeout?: Outcome

timeoutMs

Milliseconds to wait for a click before the prompt is settled and the result resolves to false.

timeoutMs?: number

Default:30_000