Skip to content

Remove most "import * as ts" imports, except for const enum reverse mapping and plugins - #53329

Merged
Jake Bailey (jakebailey) merged 6 commits into
microsoft:mainfrom
jakebailey:remove-more-ts-imports
Mar 20, 2023
Merged

Remove most "import * as ts" imports, except for const enum reverse mapping and plugins #53329
Jake Bailey (jakebailey) merged 6 commits into
microsoft:mainfrom
jakebailey:remove-more-ts-imports

Conversation

@jakebailey

@jakebailey Jake Bailey (jakebailey) commented Mar 17, 2023

Copy link
Copy Markdown
Member

Related: #51590

After this, the only remaining uses of import * as ts are those in the test projects, or those used via (ts as any).SomeEnum for reverse mapping (until #51530 if that ever happens).

@typescript-bot

Copy link
Copy Markdown
Contributor

Thanks for the PR! It looks like you've changed the TSServer protocol in some way. Please ensure that any changes here don't break consumers of the current TSServer API. For some extra review, we'll ping Sheetal Nandi (@sheetalkamat), Matt Bierner (@mjbvz), Kat Marchán (@zkat), and Joaquin Jares (@joj) for you. Feel free to loop in other consumers/maintainers if necessary

@jakebailey

Copy link
Copy Markdown
Member Author

We could eliminate the rest if we're okay with // @ts-expect-error for these enum cases.

@jakebailey

Copy link
Copy Markdown
Member Author

Well, not the rest; we still have to provide ts to the plugin API.

@jakebailey Jake Bailey (jakebailey) changed the title Remove most "import * as ts" imports, except for const enum reverse mapping Remove most "import * as ts" imports, except for const enum reverse mapping and plugins Mar 18, 2023
@jakebailey
Jake Bailey (jakebailey) merged commit 913f65c into microsoft:main Mar 20, 2023
@jakebailey
Jake Bailey (jakebailey) deleted the remove-more-ts-imports branch March 20, 2023 17:50
@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants