accounts
Version:
Tempo Accounts SDK
18 lines • 671 B
TypeScript
/** Minimal structural type for zod issues, including union branch errors. */
export type ZodIssue = {
path: readonly PropertyKey[];
code: string;
message: string;
expected?: string | undefined;
errors?: readonly (readonly ZodIssue[])[] | undefined;
};
/**
* Flattens nested zod issues into `{ path, message }` pairs. Union branches
* that each failed on type alone merge into a single `Expected a | b | c`
* message; otherwise the branch with the fewest issues is reported.
*/
export declare function flattenIssues(issues: readonly ZodIssue[]): {
path: readonly PropertyKey[];
message: string;
}[];
//# sourceMappingURL=zodIssues.d.ts.map