[READ-ONLY] Mirror of https://github.com/bombshell-dev/clack. Effortlessly build beautiful command-line apps bomb.sh/docs/clack/basics/getting-started/
cli command-line command-line-app node prompt prompts
5

Configure Feed

Select the types of activity you want to include in your feed.

[ci] format

authored by

Florian Lefebvre and committed by
bombshell-bot
(May 28, 2026, 4:12 PM UTC) b83cdcb9 83428ac6

+3 -3
+3 -3
packages/core/src/utils/validation.ts
··· 4 4 * A function or [Standard Schema](https://github.com/standard-schema/standard-schema) 5 5 * that validates user input. If a custom function is given, you should return a 6 6 * `string` or `Error` to show as a validation error, or `undefined` to accept the result. 7 - * 7 + * 8 8 * @example Using arktype 9 9 * ```ts 10 10 * import { text } from '@clack/prompts'; 11 11 * import { type } from 'arktype'; 12 - * 12 + * 13 13 * const name = await text({ 14 14 * message: 'Enter your name (letters only)', 15 15 * validate: type('string.alpha').describe('Name can only contain letters'), ··· 19 19 * @example Custom validator 20 20 * ```ts 21 21 * import { text } from '@clack/prompts'; 22 - * 22 + * 23 23 * const age = await text({ 24 24 * message: 'Enter your age:', 25 25 * validate(value) {