TypeScript icon indicating copy to clipboard operation
TypeScript copied to clipboard

Refactor type resolution logic in getTypeOfSymbol for improved readability and maintainability

Open Bashamega opened this issue 10 months ago • 1 comments

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.

Bashamega avatar Mar 12 '25 05:03 Bashamega

@microsoft-github-policy-service agree

Bashamega avatar Mar 12 '25 05:03 Bashamega