API
function standardSchemaError( issue: StandardSchemaV1.Issue, options: WithFieldTree<ValidationErrorOptions>, ): StandardSchemaValidationError; function standardSchemaError( issue: StandardSchemaV1.Issue, options?: ValidationErrorOptions | undefined, ): WithoutFieldTree<StandardSchemaValidationError>;
function standardSchemaError(issue: StandardSchemaV1.Issue, options: WithFieldTree<ValidationErrorOptions>): StandardSchemaValidationError;
Create a standard schema issue error associated with the target field
@paramissue
StandardSchemaV1.IssueThe standard schema issue
@returns
StandardSchemaValidationError
function standardSchemaError(issue: StandardSchemaV1.Issue, options?: ValidationErrorOptions | undefined): WithoutFieldTree<StandardSchemaValidationError>;
Create a standard schema issue error
@paramissue
StandardSchemaV1.IssueThe standard schema issue