-
Notifications
You must be signed in to change notification settings - Fork 455
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
Ambient types not working in 26.4.2 #2061
Comments
A bit more information about this one. In #2055 I made a change that initially, TypeScript compiler will fetch only In your scenario, your ambient types are declared in I safely assumed everyone uses |
The fix will still be in. IMO I would suggest you to start changing to use
|
@ahnpnl I agree that having those ambient types in |
FWIW (and if I understand this thread correctly) I'm using ambient declarations to implement some Jest custom matchers. They're in a In other project I have augmentations to the "global" module with types and runtime code so they are also in |
💥 Regression Report
Ambient types are not being picked up by ts-jest in 26.4.2
(Edit per comments below: If the ambient types are declared in a
.ts
file instead of a.d.ts
file.)Last working version
Worked up to version: 26.4.1
Stopped working in version: 26.4.2
To Reproduce
This PR has the errors: guyellis/plant#4180
Expected behavior
Ambient types are picked up.
Link to repo (highly encouraged)
This PR has the errors: guyellis/plant#4180
envinfo
The text was updated successfully, but these errors were encountered: