Skip to content

Refine implementation #17

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

Merged
merged 8 commits into from
Apr 8, 2022
Merged

Refine implementation #17

merged 8 commits into from
Apr 8, 2022

Conversation

aSemy
Copy link
Contributor

@aSemy aSemy commented Apr 6, 2022

closes #9

aSemy added 8 commits April 6, 2022 23:21
Polymorphism doesn't really exist as a TsElement, it's more like metadata. So remove it and directly convert sealed polymorphic descriptors in TsElementConverter.kt

To do this it requires making TsElementConverter.kt return multiple elements... but I guess that's more flexible, so it's an improvement
- create tuple serializer builder
- tuple tests
- re-use TsProperty for tuples (make 'optional' a boolean field, two data classes wasn't needed)
- remove TsExport (TypeScript generation can be controlled entirely through Kxs descriptors)
@aSemy aSemy merged commit 38d9f64 into main Apr 8, 2022
@aSemy aSemy deleted the dev branch April 8, 2022 22:25
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.

Provide a tuple serializer
1 participant