From 504a8077e87716a21f7d06c3d26cd0b57b01fcdc Mon Sep 17 00:00:00 2001 From: Abdelrahman Awad Date: Tue, 13 Feb 2024 23:36:01 +0200 Subject: [PATCH] fix: types --- packages/valibot/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/valibot/src/index.ts b/packages/valibot/src/index.ts index c6220b753..086b4b20b 100644 --- a/packages/valibot/src/index.ts +++ b/packages/valibot/src/index.ts @@ -7,7 +7,7 @@ import { BaseSchemaAsync, safeParseAsync, safeParse, - Issue, + SchemaIssue, getDefault, optional, ArraySchema, @@ -81,7 +81,7 @@ export function toTypedSchema< return schema; } -function processIssues(issues: Issue[], errors: Record): void { +function processIssues(issues: SchemaIssue[], errors: Record): void { issues.forEach(issue => { const path = normalizeFormPath((issue.path || []).map(p => p.key).join('.')); if (issue.issues?.length) {