Spec-Zone.ru › Deno 1

confirm

Shows the given message and waits for the answer. Returns the user's answer as boolean.

Only y and Y are considered as true.

If the stdin is not interactive, it returns false.

function confirm(message?: string): boolean;
confirm(message?: string): boolean

Parameters

message?: string optional

Return Type

boolean

© 2018–2022 the Deno authors
https://doc.deno.land/deno/stable/~/confirm

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API