Skip to content

Conversation

@jsdt
Copy link
Contributor

@jsdt jsdt commented Apr 15, 2025

Description of Changes

When generating typescript types, if we have an array of unions, we wrap the inner type in parens, to fix #2541.

API and ABI breaking changes

This should only change the generated code in places that would have been a bug.

Expected complexity level and risk

Testing

I didn't see a good place to add full tests for the typescript generation. We will want to do that at some point.

For this change I created a module with some more complex array types and inspected the generated code.

@jsdt jsdt requested a review from gefjon April 15, 2025 17:46
@bfops bfops added the release-any To be landed in any release window label Apr 21, 2025
@bfops
Copy link
Collaborator

bfops commented Apr 22, 2025

I am going to merge this because we are about to do a release that is trying to fix TypeScript codegen.

@bfops bfops added this pull request to the merge queue Apr 22, 2025
Merged via the queue into master with commit 69ec803 Apr 22, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-any To be landed in any release window

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeScript SDK codegen: complex types lack proper parentheses

4 participants