@turbowarp/types-tw
    Preparing search index...
    • window.prompt() instructs the browser to display a dialog with an optional message prompting the user to input some text, and to wait until the user either submits the text or cancels the dialog.

      MDN Reference

      Parameters

      • Optionalmessage: string
      • Optional_default: string

      Returns string | null

    • In desktop app, prompt() returns a Promise. Thus you should always do await prompt(...) which will work in all environments.

      Parameters

      • Optionalmessage: string
      • Optional_default: string

      Returns string | Promise<string | null> | null