this post was submitted on 14 Jan 2024
8 points (100.0% liked)
TypeScript
79 readers
1 users here now
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I use it in the code generator mode (https://typia.io/docs/setup/#generation) that doesn't require the tsc plugin integration and works well with other build tools (in my case esbuild) and arbitrary testing/code-coverage libraries.
Oh, you just add it as a separate task in package.json? That seems nicer than converting all your type defs manually to io.ts format or similar.
Yes, that mode works pretty well. In my case I don't really own the types (they come from a third party source) so being able to to auto generate validators from them is very convenient.