Skip to content

Grammar error on export type * - #37064

Merged
Andrew Branch (andrewbranch) merged 4 commits into
microsoft:masterfrom
andrewbranch:bug/36966
Feb 28, 2020
Merged

Grammar error on export type *#37064
Andrew Branch (andrewbranch) merged 4 commits into
microsoft:masterfrom
andrewbranch:bug/36966

Conversation

@andrewbranch

@andrewbranchAndrew Branch (andrewbranch) commented Feb 27, 2020

Copy link
Copy Markdown
Member

Fixes#36966

The first commit added the missing calls to markSymbolOfAliasDeclarationIfTypeOnly so as to recognize export type * forms as type-only while simultaneously disallowing it with a grammar error. Mostly I was curious how close we were to supporting export type *, and it appears that it’s only a couple extra lines. Afterwards, I reverted the extra calls because it created two errors where one would suffice.

@andrewbranch
Andrew Branch (andrewbranch) marked this pull request as ready for review February 27, 2020 19:36
@DanielRosenwasser

Copy link
Copy Markdown
Member

TypeScript Bot (@typescript-bot) cherry-pick this to release-3.8

@typescript-bot

TypeScript Bot (typescript-bot) commented Feb 28, 2020

Copy link
Copy Markdown
Contributor

Heya Daniel Rosenwasser (@DanielRosenwasser), I've started to run the task to cherry-pick this into release-3.8 on this PR at 0c7831d. You can monitor the build here.

@andrewbranch
Andrew Branch (andrewbranch) merged commit 0a6ee77 into microsoft:masterFeb 28, 2020
@typescript-bot

Copy link
Copy Markdown
Contributor

Hey Daniel Rosenwasser (@DanielRosenwasser), I couldn't open a PR with the cherry-pick. (You can check the log here). You may need to squash and pick this PR into release-3.8 manually.

@andrewbranch

Copy link
Copy Markdown
MemberAuthor

Did I mess that up by merging it?

TypeScript Bot (@typescript-bot) cherry-pick this into release-3.8

@typescript-bot

TypeScript Bot (typescript-bot) commented Feb 28, 2020

Copy link
Copy Markdown
Contributor

Heya Andrew Branch (@andrewbranch), I've started to run the task to cherry-pick this into release-3.8 on this PR at 0c7831d. You can monitor the build here.

@typescript-bot

Copy link
Copy Markdown
Contributor

Hey Andrew Branch (@andrewbranch), I couldn't open a PR with the cherry-pick. (You can check the log here). You may need to squash and pick this PR into release-3.8 manually.

Andrew Branch (andrewbranch) added a commit to andrewbranch/TypeScript that referenced this pull request Feb 28, 2020
Andrew Branch (andrewbranch) added a commit that referenced this pull request Feb 28, 2020
* Fix renaming an ExportSpecifier name when propertyName is present (#36790)
* Fix renaming exportSpecifier name when propertyName is present
* Add baseline test for name without propertyName too
* Set correct pos for NamespaceExport (#36794)
* Set correct pos for NamespaceExport
* Update tests
* Cherry-pick PR #37064 into release-3.8
@microsoftMicrosoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"export type * as namespace" also exports value

4 participants

@andrewbranch@DanielRosenwasser@typescript-bot@sheetalkamat