Skip to content

Commit db39508

Browse files
committed
chore: small improvements to comments
1 parent e8c8381 commit db39508

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/web/src/features/upload/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ type AnyZodTypeDef = z.ZodTypeDef & { typeName: ZodTypeName };
6060

6161
type AnyZodArrayDef = z.ZodArrayDef & { type: z.AnyZodObject };
6262

63-
//check for edge cases since the were using reversed hierachical logic (if object has _def then object is AnyZodObject)
63+
//check for edge cases since the were using reversed hierachical logic (if object has a _def that AnyZodTypeDef then object is AnyZodObject)
6464
function isZodObject(value: unknown): value is z.AnyZodObject {
6565
return isObjectLike(value) && isZodTypeDef((value as { [key: string]: unknown })._def);
6666
}

0 commit comments

Comments
 (0)