tsmirror
tsmirror copied to clipboard
Hard to troubleshoot problems
I am very intrigued by this package. It's something I've felt has been missing in Typescript, just a simple way to validate if unknown data match an interface.
I've tried to apply it to our Nuxt project, and I'm getting this error:
tsmirror.reflect was not compiled out
I've tried to implement the transformer with both ttypescript and with getCustomerTransformers option. I know that the transformer function get executed.
I'm using [email protected] and [email protected]
I'm also facing a similar issue, documented here: https://github.com/ziruihao/tsmirror-demo
You need to use the transformer of this project, I'd suggest you doing this with ttypescript. I've tested and found out that this works with ts 3.8.3, however, seems to fail with ts 4.2.4.
BTW, this library is really helpful, it will be even better if there's an example to reproduce the result in the doc in repository.