GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Index signature added to classes that inherit an any typed class · Issue #60383 · microsoft/TypeScript

Index signature added to classes that inherit an any typed class #60383

New issue
Copy link
New issue
Copy link
Closed
#60680
Closed
Index signature added to classes that inherit an any typed class#60383
#60680
Copy link
Assignees
weswigham
Labels
Fix AvailableA PR has been opened for this issueNeeds InvestigationThis issue needs a team member to investigate its status.
Milestone
TypeScript 5.7.1

Description

@dragomirtitian
Titian Cernicova-Dragomir (dragomirtitian)
opened on Oct 31, 2024
Issue body actions

🔎 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 Support interpreting non-literal computed properties in classes as implicit index signatures #59860

⏯ Playground Link

Playground Link

💻 Code

const AnyClass = class {} as any;
export class Cls extends AnyClass { }

🙁 Actual behavior

The declaration for the class contains a static index signature:

declare const AnyClass: any;
export declare class Cls extends AnyClass {
     static [x: string]: any;
}

🙂 Expected behavior

The declaration for the class does not contain the index sigature as in TS 5.6 and before:

declare const AnyClass: any;
export declare class Cls extends AnyClass {
}

Additional information about the issue

This means this declaration file can't be emitted in isolated declarations.

Activity

  1. Ryan Cavanaugh (RyanCavanaugh)
    added
    Needs InvestigationThis issue needs a team member to investigate its status.
    on Nov 1, 2024
  2. Ryan Cavanaugh (RyanCavanaugh)
    assigned
    Wesley Wigham (weswigham)
    on Nov 1, 2024
  3. Ryan Cavanaugh (RyanCavanaugh)
    added this to the TypeScript 5.7.1 milestone on Nov 1, 2024
  4. TypeScript Bot (typescript-bot)
    added
    Fix AvailableA PR has been opened for this issue
    on Dec 4, 2024
  5. Wesley Wigham (weswigham)
    closed this as completedin #60680on Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @weswigham
    Wesley Wigham (weswigham)

Labels

Fix AvailableA PR has been opened for this issueNeeds InvestigationThis issue needs a team member to investigate its status.

Type

No type

Projects

No projects

    Milestone

    • TypeScript 5.7.1

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.