bombshell-dev / clack

Effortlessly build beautiful command-line apps
https://clack.cc
5.53k stars 90 forks source link

chore(@clack/prompts): update readme #162

Open await-ovo opened 1 year ago

await-ovo commented 1 year ago

Currently if we just copy the example code of cancellation, it will throw an error:

TypeError: Cannot read properties of undefined (reading 'validate')

It might be useful to fill in the required parameters here to ensure that newbies don't get an error when copying this code~

changeset-bot[bot] commented 1 year ago

⚠️ No Changeset found

Latest commit: d20891bfee477d695cafc8aaca014d843f64e517

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR