Closed LinusU closed 6 years ago
Made a lot of refactoring to the typings, and I think that they are much easier to read and understand now 🙌
Huge thanks to @andy-ms who helped me out a ton here Microsoft/TypeScript#26332 ❤️
The easiest way to review is per commit, would love some 👀 on this @cstruct ❤️
Adds the
toJSON
function to the TypeScript typings which just returns the type of the schema.Also refactors the typings to have an explicit type for a
Validator
andFilter
, just made typing things out a bit easier.