Skip to content

Commit 4c68db2

Browse files
committed
refactor: implement Zod v4 in Exception
1 parent 05821c4 commit 4c68db2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/exception.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { err, errAsync, Result, ResultAsync } from 'neverthrow';
88
import { isErrorLike, serializeError } from 'serialize-error';
99
import stringifyObject from 'stringify-object';
1010
import type { IsNever, RequiredKeysOf } from 'type-fest';
11-
import type { z } from 'zod';
11+
import type { z } from 'zod/v4';
1212

1313
import { objectify } from './object.js';
1414
import { indentLines } from './string.js';
@@ -233,7 +233,7 @@ const { OutOfRangeException } = new ExceptionBuilder()
233233
.build();
234234

235235
export const { ValidationException } = new ExceptionBuilder()
236-
.setOptionsType<{ details: { data: unknown; issues: z.ZodIssue[] } }>()
236+
.setOptionsType<{ details: { data: unknown; issues: z.core.$ZodIssue[] } }>()
237237
.setParams({ message: 'Zod schema validation failed', name: 'ValidationException' })
238238
.build();
239239

0 commit comments

Comments
 (0)