Skip to content

Undocumented breaking change in 5.5.0-beta for reference directivesΒ #58324

Closed

Description

πŸ”Ž Search Terms

5.5.0-beta

πŸ•— Version & Regression Information

  • This changed between versions 5.4 and 5.5

⏯ Playground Link

https://github.com/Jack-Works/reproduce

πŸ’» Code

Clone the repo

git clone https://github.com/Jack-Works/reproduce/ --filter=blob:none
cd reproduce/typescript-5.5-dts
pnpm install

pnpm run old
pnpm run new

πŸ™ Actual behavior

Global augmentation no longer works in 5.5.0-beta across different projects. (pnpm run new)

πŸ™‚ Expected behavior

Global augmentation works in 5.4 across different projects. (pnpm run old)

Additional information about the issue

Global augmentation across different projects is an important ability. Here are some examples:

  • You have a components project that augments the global JSX type, and you access those elements from another project
  • Theming a UI library
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

DocsThe issue relates to how you learn TypeScript

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions