Type Alias recursiveZodFormattedError<T>

recursiveZodFormattedError<T>: T extends [any, ...any[]]
    ? {
        [K in keyof T]?: ZodFormattedError<T[K]>
    }
    : T extends any[]
        ? {
            [k: number]: ZodFormattedError<T[number]>;
        }
        : T extends object
            ? {
                [K in keyof T]?: ZodFormattedError<T[K]>
            }
            : unknown

Type Parameters

  • T