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.
This commit is contained in:
Sol Boucher 2024-03-24 14:04:57 +07:00 committed by GitHub
parent ec9342f95a
commit ae52b49dd6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.
*