We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5bf5af commit 35f38fdCopy full SHA for 35f38fd
packages/react-dev-utils/README.md
@@ -157,7 +157,7 @@ if (openBrowser('http://localhost:3000')) {
157
}
158
```
159
160
-#### `prompt`
+#### `prompt(message: string, isYesDefault: boolean): Promise<boolean>`
161
162
This function displays a console prompt to the user.
163
@@ -169,7 +169,7 @@ You can control the behavior on `<Enter>` with `isYesDefault`.
169
var prompt = require('react-dev-utils/prompt');
170
prompt(
171
'Are you sure you want to eat all the candy?',
172
- false
+ /* isYesDefault */ false
173
).then(shouldEat => {
174
if (shouldEat) {
175
console.log('You have successfully consumed all the candy.');
0 commit comments