English
Variable: confirm
ts
const confirm: (opts) => Promise<boolean | typeof CANCEL_SYMBOL>;Defined in: node_modules/.pnpm/@clack+prompts@1.9.0/node_modules/@clack/prompts/dist/index.d.mts:337
The confirm prompt accepts a yes or no choice, returning a boolean value corresponding to the user's selection.
Parameters
| Parameter | Type |
|---|---|
|
Returns
Promise<boolean | typeof CANCEL_SYMBOL>
See
https://bomb.sh/docs/clack/packages/prompts/#confirmation
Example
ts
import { confirm } from "@clack/prompts";
const shouldProceed = await confirm({
message: "Do you want to continue?",
});
