fabien0102 / ts-to-zod

Generate zod schemas from typescript types/interfaces

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Append created types to specified file, if that file already exists.

sp88011 opened this issue · comments

commented

Feature description

Allow types to be added to existing file, rather than overwriting a file that may exist.

Input

npm ts-to-zod src/iDontTrustThisApi.ts src/nowIcanValidateEverything.ts

Output

if src/nowIcanValidateEverything.ts exists, add output to end of file. Otherwise create file.

Feel free to create a PR!