TypeScript
TypeScript copied to clipboard
Refactor type resolution logic in getTypeOfSymbol for improved readability and maintainability
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.
@microsoft-github-policy-service agree