Re:Designing the perfect TypeScript schema validation library
by williamdclt on Friday March 13, 2020 @06:10AM
(#22566054)
I understand it (there's already enough to do at type level that runtime level is a non-goal), but types are purely indicative at IO boundaries. Validation still needs to happen
Re:Designing the perfect TypeScript schema validation library
by eyelidlessness on Friday March 13, 2020 @07:32PM
(#22571781)
That's right. So since it won't be a part of the language, libraries like this are being developed.
> Add or rely on run-time type information in programs, or emit different code based on the results of the type system. Instead, encourage programming patterns that do not require run-time metadata.
[1] https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...