Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/workerd/dialog.ts>PromptOptions

A JavaScript extension package for building strong and modern applications.
Latest
interface PromptOptions
implements DialogOptions
Re-export
import { type PromptOptions } from "https://deno.land/x/ayonli_jsext@v0.9.72/workerd/dialog.ts";

Options for the prompt function.

Properties

optional
defaultValue: string | undefined

The default value of the input box.

optional
type: "text" | "password"

The type of the input box. The default value is text, when password is specified, the input will be masked.

optional
mask: string

Terminal only, used when type is password. The default value is *, use an empty string if you don't want to show any character.

This option is ignored when gui is true.