From ae52b49dd6edcfbb88ea39c3fcf0c0cc4b59eee7 Mon Sep 17 00:00:00 2001 From: Sol Boucher Date: Sun, 24 Mar 2024 14:04:57 +0700 Subject: [PATCH] docs(dts): Update edge case in `prompt()` docs (#22954) This has been incorrect since the function adopted its (more intuitive) current behavior in 9268df5f3. The same behavior change was backported to v1.39.3 in 87e954f54. --- cli/tsc/dts/lib.deno.window.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/tsc/dts/lib.deno.window.d.ts b/cli/tsc/dts/lib.deno.window.d.ts index 83c385aa06..6e57174f86 100644 --- a/cli/tsc/dts/lib.deno.window.d.ts +++ b/cli/tsc/dts/lib.deno.window.d.ts @@ -152,7 +152,8 @@ declare function confirm(message?: string): boolean; * If the default value is given and the user inputs the empty string, then it returns the given * default value. * - * If the default value is not given and the user inputs the empty string, it returns null. + * If the default value is not given and the user inputs the empty string, it returns the empty + * string. * * If the stdin is not interactive, it returns null. *