Open arikmaor opened 3 years ago
Sorry for only seeing this now. I'll take a look at it and get back to you ASAP
the same issue. is there any news?
Made it work, using "typescript": "^3.8.3"
& "ajv": "^6.12.2",
the most recent versions throw the error.
I know it's a work around but at least can be used in while the author work on the fix.
I'll look into this, but I highly recommend moving to a more modern solution, like Zod, which also allows you to write things only once, but is way less hacky and has more advanced features
But in Zod you can't define your types with typescript, which is why I'd like you're project more
No, but you can define them with Zod and have Zod generate the types for you
Yeah, I started looking into this but, as I suspected, this will not work for newer typescript versions. That is actually why I recommend avoid using transformers: TypeScript API changes a lot between versions, so transformers are very fragile. I'm sorry guys, but I don't have the time necessary to update or mantain this library. I'll deprecate it, but feel free to fork and publish your own.
I'm getting an error while trying to use this package (which seems very promising)
The project only contains one file
src/index.ts
this is my
tsconfig.json
This is the error from
ttsc
:Any clue?