Reporter needs to be parameterized
justinwoo opened this issue · 3 comments
justinwoo commented
I'm trying to use reporter here: https://github.com/OliverJAsh/io-ts-reporters/blob/d6faa5b95f451974d59981b3f4d188e5b1b119db/src/index.ts#L35
But this doesn't correctly let me use this with any type as I get a mismatch against the empty object. Could you change this to use a parameter instead, or is there something preventing this from working?
OliverJAsh commented
justinwoo commented
Does that prevent losing the type information about what the type of the validation result is? I guess it would be fine if so.
OliverJAsh commented
I don't think it would prevent that—we would need a generic.