Skip to content

Commit d20891b

Browse files
committed
chore(@clack/prompts): update readme
1 parent 90f8e3d commit d20891b

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)