Skip to content

Commit 564e717

Browse files
authored
chore(@clack/prompts): update readme (#162)
2 parents dcc5827 + d20891b commit 564e717

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/prompts/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ The `isCancel` function is a guard that detects when a user cancels a question w
3434
```js
3535
import { isCancel, cancel, text } from '@clack/prompts';
3636

37-
const value = await text(/* TODO */);
37+
const value = await text({
38+
message: 'What is the meaning of life?',
39+
});
3840

3941
if (isCancel(value)) {
4042
cancel('Operation cancelled.');

0 commit comments

Comments
 (0)