Skip to main content

Function: showWarningMessage()

showWarningMessage(message, ...items): Promise<string | undefined>

Show a warning message. Optionally provide an array of items which will be presented as clickable buttons.


message: string

The message to show.

• ...items: string[]

A set of items that will be rendered as actions in the message.


Promise<string | undefined>

A promise that resolves to the selected item or undefined when being dismissed.

Defined in