Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick info doesn't show index signature information when it's declared on the interface with a base type #55251

Closed
Andarist opened this issue Aug 3, 2023 · 0 comments Β· Fixed by #55252
Labels
Experience Enhancement Noncontroversial enhancements Help Wanted You can do this Suggestion An idea for TypeScript
Milestone

Comments

@Andarist
Copy link
Contributor

Andarist commented Aug 3, 2023

Bug Report

πŸ”Ž Search Terms

quick info index signature base type interface

πŸ•— Version & Regression Information

  • This is the behavior in every version I tried

⏯ Playground Link

Playground link with relevant code

πŸ’» Code

interface A {
  [k: string]: number;
}

declare const a: A;
a.test = 10; // quickInfo: (index) A[string]: number

interface P {}
interface B extends P {
  [k: string]: number;
}
declare const b: B;
b.test = 10; // quickInfo: number

πŸ™ Actual behavior

The first quick info has an index symbol information in it but the second on doesn't.

πŸ™‚ Expected behavior

I expect both to disp;ay roughly the same information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Experience Enhancement Noncontroversial enhancements Help Wanted You can do this Suggestion An idea for TypeScript
Projects
None yet
2 participants