Skip to content

/// <reference lib is stripped out of d.ts file #58956

Description

@SimenB

🔎 Search Terms

reference lib elided disposable

🕗 Version & Regression Information

  • This changed between versions 5.4.5 and 5.5.2

(not fixed in nightly)

⏯ Playground Link

https://www.typescriptlang.org/play/?ts=5.5.2#code/PQgEB4CcFMDNpgOwMbVAGwJYCMC8AiaAZ0WgA8AXAOgBNMiAHAeyIENt1p9RgA+AKH7lmkCqEyIKCWK1SgAKgAsJAc1DkpiGkVAAReszYc0AbwC+QA

💻 Code

/// <reference lib="esnext.disposable" />exportinterfaceThingextendsDisposable{}

🙁 Actual behavior

Output d.ts is

exportinterfaceThingextendsDisposable{}

🙂 Expected behavior

The .d.ts file should be like it was in 5.4.5

/// <reference lib="esnext.disposable" />exportinterfaceThingextendsDisposable{}

Additional information about the issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions