No explicit any

This commit is contained in:
2025-12-17 20:10:00 +00:00
parent 18cf0cc140
commit 89001f53da
18 changed files with 257 additions and 205 deletions

View File

@@ -15,7 +15,8 @@ function formatErrors(errors: z.ZodFormattedError<Map<string, string>, string>)
return Object.entries(errors)
.map(([name, value]) => {
if (value && "_errors" in value) {
return `${name}: ${(value as any)._errors.join(", ")}`;
const errs = (value as z.ZodFormattedError<string>)._errors;
return `${name}: ${errs.join(", ")}`;
}
return `${name}: invalid`;
})