Title: Index signature added to classes that inherit an any typed class · Issue #60383 · microsoft/TypeScript · GitHub
Open Graph Title: Index signature added to classes that inherit an any typed class · Issue #60383 · microsoft/TypeScript
X Title: Index signature added to classes that inherit an any typed class · Issue #60383 · microsoft/TypeScript
Description: 🔎 Search Terms index signature any 🕗 Version & Regression Information This changed between versions 5.7.0-dev.20240923 and 5.7.0-dev.20240924 This probably changed in PR #59860 ⏯ Playground Link Playground Link 💻 Code const AnyClass = cl...
Open Graph Description: 🔎 Search Terms index signature any 🕗 Version & Regression Information This changed between versions 5.7.0-dev.20240923 and 5.7.0-dev.20240924 This probably changed in PR #59860 ⏯ Playground Link Pl...
X Description: 🔎 Search Terms index signature any 🕗 Version & Regression Information This changed between versions 5.7.0-dev.20240923 and 5.7.0-dev.20240924 This probably changed in PR #59860 ⏯ Playground Lin...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/60383
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Index signature added to classes that inherit an any typed class","articleBody":"### 🔎 Search Terms\n\nindex signature any\n\n### 🕗 Version & Regression Information\n\n- This changed between versions 5.7.0-dev.20240923 and 5.7.0-dev.20240924\n- This *probably* changed in PR https://github.com/microsoft/TypeScript/pull/59860\n\n\n### ⏯ Playground Link\n\n[Playground Link](https://www.typescriptlang.org/play/?#code/MYewdgzgLgBAgmAngYQDYEMIRgXhsDLGAbwF8ZMKkBuAWACgBTADwAcQAnWAzbNbFlEZgAJtgQpC2YjFJA)\n\n### 💻 Code\n\n```ts\nconst AnyClass = class {} as any;\nexport class Cls extends AnyClass { }\n```\n\n\n### 🙁 Actual behavior\n\nThe declaration for the class contains a static index signature:\n\n```ts\ndeclare const AnyClass: any;\nexport declare class Cls extends AnyClass {\n static [x: string]: any;\n}\n```\n\n### 🙂 Expected behavior\n\nThe declaration for the class does not contain the index sigature as in TS 5.6 and before:\n\n```ts\ndeclare const AnyClass: any;\nexport declare class Cls extends AnyClass {\n}\n```\n\n### Additional information about the issue\n\nThis means this declaration file can't be emitted in isolated declarations.","author":{"url":"https://github.com/dragomirtitian","@type":"Person","name":"dragomirtitian"},"datePublished":"2024-10-31T17:08:27Z","url":"https://github.com/microsoft/TypeScript/issues/60383"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:35615295-5017-44e5-b6e4-201b3961aa1c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E192:36E50:709184:95CE17:6B04C8C2 |
| html-safe-nonce | 21544f658e0f7612076638d776c210270d22902c6a9910de5ad3fd6c417fcb0a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTkyOjM2RTUwOjcwOTE4NDo5NUNFMTc6NkIwNEM4QzIiLCJ2aXNpdG9yX2lkIjoiODM5ODY2NDQ0NDM4MDc2MDI1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6d705cf30db9cc5c5e5faeaa891d4d08cff8a61ca718875d47d8b5cf48cf4285 |
| hovercard-subject-tag | issue:2627389679 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/60383/issue_layout |
| twitter:image | https://opengraph.githubassets.com/47b865a5111d48da1f7de7f83fb225b4bf3209ceda218ea46bd70449e8227c5d/microsoft/TypeScript/issues/60383 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/47b865a5111d48da1f7de7f83fb225b4bf3209ceda218ea46bd70449e8227c5d/microsoft/TypeScript/issues/60383 |
| og:image:alt | 🔎 Search Terms index signature any 🕗 Version & Regression Information This changed between versions 5.7.0-dev.20240923 and 5.7.0-dev.20240924 This probably changed in PR #59860 ⏯ Playground Link Pl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dragomirtitian |
| hostname | github.com |
| expected-hostname | github.com |
| None | 85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width