(original: string, context?: unknown[])
| 52 | }) |
| 53 | const summarizeForEdit = (value: string): string => value |
| 54 | const updateFromUserInput = (original: string, context?: unknown[]): Promise<string | undefined> => |
| 55 | optionalStringInput(`${name} (optional)`, |
| 56 | { ...options, default: original, validate: validateWithContextFn(options?.validate, context) }) |
| 57 | |
| 58 | return { name, buildFromUserInput, summarizeForEdit, updateFromUserInput } |
| 59 | } |
no test coverage detected