Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Feb 13, 2024
1 parent 8f32226 commit 504a807
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/valibot/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
BaseSchemaAsync,
safeParseAsync,
safeParse,
Issue,
SchemaIssue,
getDefault,
optional,
ArraySchema,
Expand Down Expand Up @@ -81,7 +81,7 @@ export function toTypedSchema<
return schema;
}

function processIssues(issues: Issue[], errors: Record<string, TypedSchemaError>): void {
function processIssues(issues: SchemaIssue[], errors: Record<string, TypedSchemaError>): void {
issues.forEach(issue => {
const path = normalizeFormPath((issue.path || []).map(p => p.key).join('.'));
if (issue.issues?.length) {
Expand Down

0 comments on commit 504a807

Please sign in to comment.