standardSchemaError
function
API
function standardSchemaError(
issue: StandardSchemaV1.Issue,
options: WithField<ValidationErrorOptions>,
): StandardSchemaValidationError;
function standardSchemaError(
issue: StandardSchemaV1.Issue,
options?: ValidationErrorOptions | undefined,
): WithoutField<StandardSchemaValidationError>;
function standardSchemaError(issue: StandardSchemaV1.Issue, options: WithField<ValidationErrorOptions>): StandardSchemaValidationError;
Create a standard schema issue error associated with the target field
@paramissue
StandardSchemaV1.Issue
The standard schema issue
@returns
StandardSchemaValidationError
function standardSchemaError(issue: StandardSchemaV1.Issue, options?: ValidationErrorOptions | undefined): WithoutField<StandardSchemaValidationError>;
Create a standard schema issue error
@paramissue
StandardSchemaV1.Issue
The standard schema issue
@paramoptions
ValidationErrorOptions | undefined
The optional validation error options
Jump to details