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

Fixes name collisions in TS refiner between models and interfaces. #4667

Merged
merged 3 commits into from
May 15, 2024

Conversation

andrueastman
Copy link
Member

This PR fixes #4382

In summary, changes include

  • Makes the OriginalClass property in CodeInterface required as ideally this is a Dom element created from another class not originally in the builder. So this is always expected to populated.
  • Updates the typescript refiner to no longer rely on the TemporaryInterfaceNameSuffix to generate interfaces by appending and then truncating the suffix later on. This is now done directly using the name from the OriginalClass(which is required and always present) to guarantee similar names between the class and the final interface.

Copy link

sonarcloud bot commented May 15, 2024

@andrueastman andrueastman marked this pull request as ready for review May 15, 2024 14:18
@andrueastman andrueastman requested a review from a team as a code owner May 15, 2024 14:18
@andrueastman andrueastman self-assigned this May 15, 2024
@andrueastman andrueastman merged commit 596e783 into main May 15, 2024
207 of 208 checks passed
@andrueastman andrueastman deleted the andrueastman/deduplicateInterfaces branch May 15, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants