-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Allow references to the global Symbol in computed property names under isolatedDeclarations #58771
Allow references to the global Symbol in computed property names under isolatedDeclarations #58771
Conversation
…r isolatedDeclarations
Is this something we should backport to 5.5? |
Perhaps in 5.5.4? Also we just stumbled on some code today that could really use something like #58829, since it uses custom created |
I'll discuss with others whether it's a good idea to backport, but in the meantime let's just kick it off. @typescript-bot cherry-pick this to release-5.5 |
…r isolatedDeclarations (#58771)
Hey, @DanielRosenwasser! I've created #59378 for you. |
…e-5.5 (#59378) Co-authored-by: Wesley Wigham <[email protected]>
Specifically, they must look like
Symbol.something
orglobalThis.Symbol.something
, and in the first case, that first identifier must refer exactly to the globalSymbol
value (or not resolve at all, in which case it's the missing global by default). In the second,globalThis
must exactly refer to the globalglobalThis
.This should allow the common cases like
Symbol.iterator
members and the like, without allowing complicated ones that might not be right like imports that refer to arbitrary maybe-symbol names.