Skip to content

New Feature: printC #62

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cyberixae
Copy link

This PR is an attempt to implement the printC function that converts a type declaration into codec type signature. This is my best effort of implementing all the features. I'm not sure if all of this works. In particular I'm unsure of how to deal with the recursive and custom types involved. I'm planning to test some of this in practice to see if I can solve some of the problems I have encountered with huge inlined declarations resulting from automated json schema conversion.

@cyberixae
Copy link
Author

I updated the PR based on what seemed to work for me in the json schema converter. It might still problems since I don't use all of the features in the converter.

@husayt
Copy link

husayt commented Oct 30, 2020

@gcanti Thanks for this amazing library. It is featuring in ThoughtWorks Radar and that says a lot.

Any chance to review this pull request?

@cyberixae has done nice JsonSchema2TS codegen using this library. This code is used there, but truly belongs here.

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.

2 participants