Skip to content
New issue

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

Add toJSON to TypeScript typings #166

Merged
merged 6 commits into from Aug 10, 2018
Merged

Add toJSON to TypeScript typings #166

merged 6 commits into from Aug 10, 2018

Conversation

LinusU
Copy link
Collaborator

@LinusU LinusU commented Aug 9, 2018

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 and Filter, just made typing things out a bit easier.

@LinusU
Copy link
Collaborator Author

LinusU commented Aug 9, 2018

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 ❤️

@LinusU LinusU merged commit 20b299d into master Aug 10, 2018
@LinusU LinusU deleted the ts-tojson branch August 10, 2018 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant