Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Parsix: Parse Don't Validate. Parent comment
You define a decoder schema, and then the resulting TS type gets automatically derived for you. You can then run data through the decoder, it will err if there's a mismatch, or return a value of the inferred type otherwise.
There are no comments on this comment yet.
You define a decoder schema, and then the resulting TS type gets automatically derived for you. You can then run data through the decoder, it will err if there's a mismatch, or return a value of the inferred type otherwise.