Skip to content

🤖 Cherry-pick PR #33847 into release-3.7 #34720

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

Merged

Conversation

typescript-bot
Copy link
Collaborator

This cherry-pick was triggerd by a request on #33847
Please review the diff and merge if no changes are unexpected.
You can view the cherry-pick log here.

cc @weswigham

Component commits:
97dcbd3 Avoid a crash with `@typedef` in a script file.
Scripts (as opposed to modules) do not have a symbol object. If a script
contains a `@typdef` defined on a namespace called `exports`, TypeScript
crashes because it attempts to create an exported symbol on the
(non-existent) symbol of the SourceFile.

This change avoids the crash by explicitly checking if the source file
has a symbol object, i.e. whether it is a module.

f9b7d6e Add usage of exports.SomeName typedef.

92dc69d Fix bug at bind site rather than in declare func
@weswigham
Copy link
Member

@RyanCavanaugh @DanielRosenwasser the angular team originally asked for a fix for this to be ported to 3.6, so I assume that means we want it in 3.7, at least. Merge or close as you see fit ❤️

@DanielRosenwasser DanielRosenwasser merged commit 1ac8f40 into microsoft:release-3.7 Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants