PromptParams.valueValidator method
PromptParams › valueValidator
A function to validate the input value.Signature:
valueValidator(this: void, value: string): Promisable<MaybeReturn<string>>Parameters:
| Parameter | Type | Description |
|---|---|---|
| this | void | |
| value | string | The input value to validate. |
Returns: Promisable<MaybeReturn<string>> — an error message if the value is invalid, or null if the value is valid.