We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The docs state a Reporter type as:
interface Reporter<A> { report: (validation: Validation<any>) => A; }
However, it could just be a function instead:
(validation: Validation<any>) => A
This is a nitpick, but I noticed I accidentally deviated from your standard in my library, https://github.com/OliverJAsh/io-ts-reporters, where I just export a reporter function.
reporter
Does it make sense to simplify the type here, or are there reasons for keeping it as a function on an object?
The text was updated successfully, but these errors were encountered:
are there reasons for keeping it as a function on an object?
For consistency. It's just how type classes are encoded in fp-ts (static dictionaries)
Sorry, something went wrong.
No branches or pull requests
The docs state a Reporter type as:
However, it could just be a function instead:
This is a nitpick, but I noticed I accidentally deviated from your standard in my library, https://github.com/OliverJAsh/io-ts-reporters, where I just export a
reporter
function.Does it make sense to simplify the type here, or are there reasons for keeping it as a function on an object?
The text was updated successfully, but these errors were encountered: