8000 Add a function to get TypeScript type without inlining by Vlad-Shcherbina · Pull Request #392 · specta-rs/specta · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add a function to get TypeScript type without inlining #392

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 3 commits into from
Jun 23, 2025

Conversation

Vlad-Shcherbina
Copy link
Contributor

In 2.0.0-rc.22, before the most recent API rework, it was possible
to generate a TypeScript type string for a given type without inlining
(for example, Vec<MyEnum> would produce MyEnum[] rather than
("Variant1" | "Variant2")]])

This change adds this option back.

In 2.0.0-rc.22, before the most recent API rework, it was possible
to generate a TypeScript type string for a given type without inlining
(for example, `Vec<MyEnum>` would produce `MyEnum[]` rather than
`("Variant1" | "Variant2")]]`)

This change adds this option back.
Copy link
Member
@oscartbeaumont oscartbeaumont left a comment

Choose a reason for hiding this comment

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

One small suggestion, otherwise this looks great. Did somehow miss it in the cleanup work.

@oscartbeaumont oscartbeaumont merged commit ff4ba3a into specta-rs:main Jun 23, 2025
1 of 4 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.

2 participants
0