File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ import type { StandardSchemaV1 } from './standard-schema.js';
44 * A function or [Standard Schema](https://github.com/standard-schema/standard-schema)
55 * that validates user input. If a custom function is given, you should return a
66 * `string` or `Error` to show as a validation error, or `undefined` to accept the result.
7- *
7+ *
88 * @example Using arktype
99 * ```ts
1010 * import { text } from '@clack/prompts';
1111 * import { type } from 'arktype';
12- *
12+ *
1313 * const name = await text({
1414 * message: 'Enter your name (letters only)',
1515 * validate: type('string.alpha').describe('Name can only contain letters'),
@@ -19,7 +19,7 @@ import type { StandardSchemaV1 } from './standard-schema.js';
1919 * @example Custom validator
2020 * ```ts
2121 * import { text } from '@clack/prompts';
22- *
22+ *
2323 * const age = await text({
2424 * message: 'Enter your age:',
2525 * validate(value) {
You can’t perform that action at this time.
0 commit comments