-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
/// <reference lib
is stripped out of d.ts
file
#58956
Comments
This is by design: https://devblogs.microsoft.com/typescript/announcing-typescript-5-5/#simplified-reference-directive-declaration-emit Changed in #57681. You must now write: /// <reference lib="esnext.disposable" preserve="true" /> |
Ah, somehow missed that. Thanks! An awesome change - I have some code when building definition files I can probably delete, then. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
π Search Terms
reference lib elided disposable
π Version & Regression Information
(not fixed in nightly)
β― Playground Link
https://www.typescriptlang.org/play/?ts=5.5.2#code/PQgEB4CcFMDNpgOwMbVAGwJYCMC8AiaAZ0WgA8AXAOgBNMiAHAeyIENt1p9RgA+AKH7lmkCqEyIKCWK1SgAKgAsJAc1DkpiGkVAAReszYc0AbwC+QA
π» Code
π Actual behavior
Output
d.ts
isπ Expected behavior
The
.d.ts
file should be like it was in 5.4.5Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: