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.IssueThe standard schema issue
@returns
StandardSchemaValidationErrorfunction standardSchemaError(issue: StandardSchemaV1.Issue, options?: ValidationErrorOptions | undefined): WithoutField<StandardSchemaValidationError>;Create a standard schema issue error
@paramissue
StandardSchemaV1.IssueThe standard schema issue
@paramoptions
ValidationErrorOptions | undefinedThe optional validation error options
Jump to details