Skip to content

Commit 27da2a7

Browse files
authored
Merge pull request #1584 from akim-bow/custom-error-unknown
fix: update the type of a customError property
2 parents 5a28cd7 + 61677cf commit 27da2a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ export class ValidationError extends Error {
320320
/**
321321
* Custom error if provided
322322
*/
323-
customError?: string
323+
customError?: unknown
324324

325325
constructor(
326326
public type: string,

0 commit comments

Comments
 (0)