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

Refactor type resolution logic in getTypeOfSymbol for improved readability and maintainability #61402

Closed

Conversation

Bashamega
Copy link

@Bashamega Bashamega commented Mar 12, 2025

Fixes #61401

🔹 Improvements:

Better Readability: Uses Map instead of a long chain of ternary operators.
More Maintainable: Easily extendable if new checks need to be added.
Efficient: Iterates over a small set of conditions rather than multiple if statements.

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Mar 12, 2025
@Bashamega
Copy link
Author

@microsoft-github-policy-service agree

@Bashamega Bashamega marked this pull request as draft March 12, 2025 05:52
@Bashamega Bashamega marked this pull request as draft March 12, 2025 05:52
@Bashamega Bashamega marked this pull request as ready for review March 12, 2025 06:05
@Bashamega Bashamega deleted the refactor/get-type-of-symbol branch March 12, 2025 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Refactor getTypeOfSymbol for Improved Readability and Maintainability
3 participants