We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
/// <reference lib
d.ts
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 elided disposable
(not fixed in nightly)
https://www.typescriptlang.org/play/?ts=5.5.2#code/PQgEB4CcFMDNpgOwMbVAGwJYCMC8AiaAZ0WgA8AXAOgBNMiAHAeyIENt1p9RgA+AKH7lmkCqEyIKCWK1SgAKgAsJAc1DkpiGkVAAReszYc0AbwC+QA
/// <reference lib="esnext.disposable" /> export interface Thing extends Disposable {}
Output d.ts is
export interface Thing extends Disposable { }
The .d.ts file should be like it was in 5.4.5
.d.ts
/// <reference lib="esnext.disposable" /> export interface Thing extends Disposable { }
No response
The text was updated successfully, but these errors were encountered:
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" />
Sorry, something went wrong.
Ah, somehow missed that. Thanks!
An awesome change - I have some code when building definition files I can probably delete, then.
https://github.com./jestjs/jest/blob/046787eafae9ea0515b19e81f30758e0f040f077/scripts/buildTs.mjs#L205-L232
No branches or pull requests
π 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: