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

Ts types jenny tests #13

Merged
merged 11 commits into from
Sep 18, 2023
Merged

Ts types jenny tests #13

merged 11 commits into from
Sep 18, 2023

Conversation

K-Phoen
Copy link
Member

@K-Phoen K-Phoen commented Sep 12, 2023

This PR adds a bunch of test cases for the IR → Typescript raw types jenny.

I'm mostly happy with the current state of that jenny. The resulting Typescript seems to be good, even though a few things aren't supported:

  • default values are completely omitted. We need to decide how we want to handle them: in builders only, or cuetsy-style
  • there is no concept of inheritance in the IR and parsers. Do we want to support that? (example)

This points ↑ can be addressed later. Merging this PR closes #5 and would allow us to focus either on #6 or TS builders generation.

Base automatically changed from inspect-command to main September 13, 2023 10:41
@spinillos
Copy link
Member

Do we want to use txtar files for testing? I'm not against that, I'm only curious.

@K-Phoen
Copy link
Member Author

K-Phoen commented Sep 18, 2023

I quite like having the IR and all the code we can generate from it in one file + it's quite easy to add more test case for jennies. That's mainly why I went with txtar, but I don't have a strong opinion if that's not something we want to go with 🤷

@K-Phoen K-Phoen merged commit f57d38f into main Sep 18, 2023
2 checks passed
@K-Phoen K-Phoen deleted the ts-types-jenny-tests branch September 18, 2023 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test the Typescript raw types target
2 participants