Interesting. I was just looking for a json/ts validation library, what a coincidence! Well, I might as well try this out. ;) By the way, as a humble developer, performance is nice but simplicity is key. Thanks for the lib.
Hmmm.... My first attempt failed. no transform has been configured. I guess the generation of schemas during the compilation step is missing. Btw, I'm using wrangler which is a toolchain of its own, so I have no idea how to incorporate the step.
The wrangler is something like cra or vite? If you can configure webpack, then you can use this typescript-json following README article. If configuring custom webpack is too hard, I recommend to use vite instead because its configuration is the easiest one.
If you wanna detailed help or guide, you also can write an issue on the repo. Then I or another developer may help you.
Interesting. I was just looking for a json/ts validation library, what a coincidence! Well, I might as well try this out. ;) By the way, as a humble developer, performance is nice but simplicity is key. Thanks for the lib.
Hmmm.... My first attempt failed.
no transform has been configured. I guess the generation of schemas during the compilation step is missing. Btw, I'm usingwranglerwhich is a toolchain of its own, so I have no idea how to incorporate the step.The
wrangleris something likecraorvite? If you can configurewebpack, then you can use thistypescript-jsonfollowing README article. If configuring customwebpackis too hard, I recommend to useviteinstead because its configuration is the easiest one.If you wanna detailed help or guide, you also can write an issue on the repo. Then I or another developer may help you.
Wrangler should delegate to whatever is executed by package.json's build script . Usually it's either esbuild or webpack.