Skip to content

Commit 35f38fd

Browse files
committed
Tweak README
1 parent e5bf5af commit 35f38fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-dev-utils/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ if (openBrowser('http://localhost:3000')) {
157157
}
158158
```
159159

160-
#### `prompt`
160+
#### `prompt(message: string, isYesDefault: boolean): Promise<boolean>`
161161

162162
This function displays a console prompt to the user.
163163

@@ -169,7 +169,7 @@ You can control the behavior on `<Enter>` with `isYesDefault`.
169169
var prompt = require('react-dev-utils/prompt');
170170
prompt(
171171
'Are you sure you want to eat all the candy?',
172-
false
172+
/* isYesDefault */ false
173173
).then(shouldEat => {
174174
if (shouldEat) {
175175
console.log('You have successfully consumed all the candy.');

0 commit comments

Comments
 (0)