Skip to content

Commit

Permalink
fix(errors): validation errors keys
Browse files Browse the repository at this point in the history
re #41
  • Loading branch information
TheEdoRan committed Dec 17, 2023
1 parent 71cf3ff commit 8e3b859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next-safe-action/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type { z } from "zod";
export type SafeAction<Schema extends z.ZodTypeAny, Data> = (input: z.input<Schema>) => Promise<{
data?: Data;
serverError?: string;
validationError?: Partial<Record<keyof z.input<Schema> | "_root", string[]>>;
validationError?: Partial<Record<keyof z.infer<Schema> | "_root", string[]>>;
}>;

/**
Expand Down

1 comment on commit 8e3b859

@vercel
Copy link

@vercel vercel bot commented on 8e3b859 Dec 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.