Thomas V.

Results 33 comments of Thomas V.

Hello @vladdcom, Do you mean that it would just ignore this prompt: ``` ? You have multiple configs available in "ts-to-zod.config.js" What do you want? (Use arrow keys) ❯ Execute...

In that case, you must add arguments to CLI call, right? At least an `input` argument (and ideally an `output` otherwise your `input` will be overwritten). Maybe we should skip...

In terms of developer experience, I'm wondering if we actually need the `--noConfig` flag. Why not skip config when calling ``` yarn ts-to-zod src/iDontTrustThisApi.ts src/nowIcanValidateEverything.ts ``` ? My point being...

> I'm gonna get into a interactive mode of the prompt. But I want to disable config by one command Yes, I think I understand that. My point is that...

Yep, had the same thought 😄 I don't have any permission on this repository, but I would be glad to help tag some features to track what could be added...

@aminya: if you have a `ts-to-zod.config.js` at the root of your project, the CLI should use it directly.

Hello @sp88011, When you write: > if src/nowIcanValidateEverything.ts exists, add output to end of file. Otherwise create file. 👉 what would be the behaviour is we call `npm ts-to-zod src/iDontTrustThisApi.ts...

The error message in that case has been: > › Warning: Some schemas can't be generated due to direct or indirect missing dependencies: › autoboxedTypeSchema for some time now. Closing...

Hello, Shouldn't the input be: ```ts type Union = [{ id: "string" }, { id: 0 }]; type Id = Union[number]["id"]; ```  That doesn't change the fact that the generated...

I've been using CLI and relative paths for a while, it seems to work fine. Feel free to comment with more details (OS, Zod version) if this still happens 🙏