Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
colinhacks committed Mar 22, 2024
1 parent b3e25b9 commit 0a9e95d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions deno/lib/__tests__/generics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ test("assignability", () => {
[key]: valueSchema,
});
const parsed = schema.parse(data);
type aldsjkf = z.infer<z.ZodObject<{ [k in K]: VS }>>;
const inferred: z.infer<z.ZodObject<{ [k in K]: VS }>> = parsed;
// this line errors in 3.21.2
return inferred;
};
createSchemaAndParse("foo", z.string(), { foo: "" });
Expand Down
2 changes: 0 additions & 2 deletions src/__tests__/generics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ test("assignability", () => {
[key]: valueSchema,
});
const parsed = schema.parse(data);
type aldsjkf = z.infer<z.ZodObject<{ [k in K]: VS }>>;
const inferred: z.infer<z.ZodObject<{ [k in K]: VS }>> = parsed;
// this line errors in 3.21.2
return inferred;
};
createSchemaAndParse("foo", z.string(), { foo: "" });
Expand Down

0 comments on commit 0a9e95d

Please sign in to comment.