We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8c8381 commit db39508Copy full SHA for db39508
1 file changed
apps/web/src/features/upload/utils.ts
@@ -60,7 +60,7 @@ type AnyZodTypeDef = z.ZodTypeDef & { typeName: ZodTypeName };
60
61
type AnyZodArrayDef = z.ZodArrayDef & { type: z.AnyZodObject };
62
63
-//check for edge cases since the were using reversed hierachical logic (if object has _def then object is AnyZodObject)
+//check for edge cases since the were using reversed hierachical logic (if object has a _def that AnyZodTypeDef then object is AnyZodObject)
64
function isZodObject(value: unknown): value is z.AnyZodObject {
65
return isObjectLike(value) && isZodTypeDef((value as { [key: string]: unknown })._def);
66
}
0 commit comments