react
react copied to clipboard
compiler: getGlobalDeclaration() takes a NonLocalBinding
Stack from ghstack (oldest at bottom):
- #29190
- -> #29189
- #29188
No-op refactor to make Environment#getGlobalDeclaration() take a NonLocalBinding instead of just a name. The idea is that in subsequent PRs we can use information about the binding to resolve a type more accurately. For example, we can resolve Array
differently if its an import or local and not the global Array. Similar for resolving local useState
differently than the one from React.