-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat!: Support generating lazy runtypes #107
Conversation
Codecov Report
@@ Coverage Diff @@
## main #107 +/- ##
===========================================
+ Coverage 80.00% 97.08% +17.08%
===========================================
Files 2 2
Lines 35 240 +205
Branches 7 61 +54
===========================================
+ Hits 28 233 +205
Misses 7 7
Continue to review full report at Codecov.
|
options: GenerateOptions, | ||
w: CodeWriter, | ||
node: RootType, | ||
) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just remembered that this function isn't taking the export
options into account for the types. Will fix that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thank you 🙏
Changes the behaviour of the generator so that it will emit runtypes using the
Lazy
pattern. This allows for generating runtypes that refer to each other. See runtypes/runtypes#14 (comment)