gristlabs / ts-interface-checker

Runtime library to validate data against TypeScript interfaces.
Apache License 2.0
323 stars 18 forks source link

generic type not ignoring #38

Open exilent-ashish opened 3 years ago

exilent-ashish commented 3 years ago

nothing happening with --ignore-generics, after the compilation "T" is assigned as type of field and in runtime error throwing unknown type T

i am using the command like npm bin/ts-interface-builder message.interface.ts -o ./src/main/ --inline-imports -g

dsagal commented 3 years ago

See my response here: https://github.com/gristlabs/ts-interface-checker/issues/37#issuecomment-770279185

As I said there, proper support for generics is hard, and I don't think I can make the time to make it happen. But if there are suggestions for more helpful workarounds, that may be more feasible.