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

Use _#schema to generate TS files #188

Merged
merged 10 commits into from Jul 26, 2023
Merged

Use _#schema to generate TS files #188

merged 10 commits into from Jul 26, 2023

Conversation

spinillos
Copy link
Member

@spinillos spinillos commented Jul 21, 2023

It rollback to the previous implementation since we need to use _#schema.

If you need some context: _#schema is a union between the schema and the _join value. We need this _join value to merge any extra information to the user's schemas (for example, validators).

For any reason, Cuetsy didn't like this union and it was unable to find the extends for the interfaces. We decided to split _#schema values temporally and merge them later to make it works. Finally we have a fix in Cuetsy to make it works.

@spinillos spinillos marked this pull request as draft July 21, 2023 10:44
@spinillos spinillos marked this pull request as ready for review July 24, 2023 09:22
@sdboyer
Copy link
Contributor

sdboyer commented Jul 24, 2023

Glad we finally got this sorted!

Let's use this as an excuse to introduce some simple corpus tests for ts as well - same as we have for encoding/gocode.

@spinillos spinillos requested a review from joanlopez July 26, 2023 12:14
Copy link
Contributor

@joanlopez joanlopez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! 🚀

@spinillos spinillos merged commit e35caab into main Jul 26, 2023
2 checks passed
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

3 participants