Declaration emit not dropping untyped computed property name #58583
Labels
Bug
A bug in TypeScript
Domain: Declaration Emit
The issue relates to the emission of d.ts files
Fix Available
A PR has been opened for this issue
Recent Regression
This is a new regression just found in the last major/minor version of TypeScript.
Milestone
π Search Terms
declaration, dts, ambient, computed property
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/dev/bug-workbench/?ts=5.5.0-dev.20240520#code/PTAEAEGcAsHsHcCiBbAlgFwFAgjBKN0BTAEwDFUAbIgLlGQENUA7AOhNfUmzHBKIDGlBgCcG6VLGaYeEAGZUizBslqgVAI1RL07Tt35DRRerBIBXaqABEDDQP5yA5tGsBuGTnALqy1XUYWfUxUZAAHWBF0UAAVIkhouRFYZBs7ByJnVw9MIgAPCKjQI0hIUABhUABvTFA60ABtOITWSBSiAGkiAE8AXQAKAEpqgF8PEcwgA
π» Code
π Actual behavior
π Expected behavior
Or alternatively it would now be an error.
Additional information about the issue
Note: this is an error when
isolatedDeclarations
is enabled: https://www.typescriptlang.org/play/?isolatedDeclarations=true&ts=5.5.0-dev.20240520#code/CYUwxgNghgTiAEA3W8AqIDOAXAXPKAdgJ4DcAUGSAB4AOA9jFvJFBhvAMLwDeZ8-8ANrpsAOgx0AtiADSIIgF0AFAEo8hIjwC+5LWSAThe text was updated successfully, but these errors were encountered: