Skip to content

Commit e785b99

Browse files
committed
chore: change from string to ZodFirstPartyTypeKind comparison
1 parent 5eaf9ed commit e785b99

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
@@ -76,7 +76,7 @@ function isZodSetDef(def: AnyZodTypeDef): def is z.ZodSetDef {
7676
}
7777

7878
function isZodArrayDef(def: AnyZodTypeDef): def is z.ZodArrayDef {
79-
return def.typeName === 'ZodArray';
79+
return def.typeName === z.ZodFirstPartyTypeKind.ZodArray;
8080
}
8181

8282
// TODO - fix extract set and record array functions to handle whitespace and trailing semicolon (present or included)

0 commit comments

Comments
 (0)