How ts-to-zod handles type references and imports
mainSingle File References
ts-to-zod works on one file at a time. It can resolve references to other types within the same file.
Non-Zod Imports
If your TypeScript interface references a type imported from an external module (e.g., @3rdparty/person), ts-to-zod cannot know its schema. It will use z.any() as a placeholder for that type.
Zod Imports (Automatic Resolution)
If an imported type is also defined as an input in your ts-to-zod.config.mjs, the utility will automatically replace the external import with the generated Zod schema from that file, resolving the relative paths correctly.