diff --git a/packages/next-safe-action/src/validation-errors.types.ts b/packages/next-safe-action/src/validation-errors.types.ts index 2d74890..2391e2a 100644 --- a/packages/next-safe-action/src/validation-errors.types.ts +++ b/packages/next-safe-action/src/validation-errors.types.ts @@ -34,14 +34,12 @@ export type BindArgsValidationErrors = { * Type of flattened validation errors. `formErrors` contains global errors, and `fieldErrors` * contains errors for each field, one level deep. */ -export type FlattenedValidationErrors> = VE extends undefined - ? undefined - : Prettify<{ - formErrors: string[]; - fieldErrors: { - [K in keyof Omit]?: string[]; - }; - }>; +export type FlattenedValidationErrors> = Prettify<{ + formErrors: string[]; + fieldErrors: { + [K in keyof Omit]?: string[]; + }; +}>; /** * Type of flattened bind arguments validation errors.