You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
The intended workaround for cases where you want the reference directive included in the published declaration file is to add preserve=true.
/// <reference path="./env.d.ts" preserve=true/>
I'd suggest re-titling this issue:
Undocumented breaking change in 5.5.0-beta for reference directives
Jack-Works
changed the title
Undocumented breaking change in 5.5.0-beta about module/global augmentation via .d.ts file across projects
Undocumented breaking change in 5.5.0-beta for reference directives
Apr 26, 2024
π Search Terms
5.5.0-beta
π Version & Regression Information
β― 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:
The text was updated successfully, but these errors were encountered: