Skip to content

Commit

Permalink
bug reproducer
Browse files Browse the repository at this point in the history
  • Loading branch information
schiller-manuel committed Feb 19, 2024
1 parent 8979a6f commit 502b7c0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions example/bug.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Description } from "./description";

export interface Foo {
foo: string;
}

export interface Bar {
hello: Foo;
desc: Description;
}
3 changes: 3 additions & 0 deletions example/description.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export type Description = {
value: string;
};
6 changes: 6 additions & 0 deletions ts-to-zod.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@ module.exports = [
output: "example/person.zod.ts",
},
{ name: "config", input: "src/config.ts", output: "src/config.zod.ts" },
{
name: "description",
input: "example/description.ts",
output: "example/description.zod.ts",
},
{ name: "bug", input: "example/bug.ts", output: "example/bug.zod.ts" },
];

0 comments on commit 502b7c0

Please sign in to comment.