Skip to content

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

Closed as not planned
Closed as not planned
@SimenB

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" />

export interface Thing extends Disposable {}

πŸ™ Actual behavior

Output d.ts is

export interface Thing extends Disposable {
}

πŸ™‚ Expected behavior

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

/// <reference lib="esnext.disposable" />
export interface Thing extends Disposable {
}

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