Throw when a required string option is missing or empty, using the provider's own validation error. Narrows value to string afterwards.
value
string
The option's value.
The option's name, used in the message (${field} is required).
${field} is required
Builds the error to throw from the message and field name.
requireNonEmpty(options.clientId, 'clientId', (message, field) => new CloverValidationError(message, field)); Copy
requireNonEmpty(options.clientId, 'clientId', (message, field) => new CloverValidationError(message, field));
Throw when a required string option is missing or empty, using the provider's own validation error. Narrows
valuetostringafterwards.