Skip to content

Index signature parameter does not accept redefined valid types #9745

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

Closed
danibishop opened this issue Jul 26, 2016 · 1 comment
Closed

Index signature parameter does not accept redefined valid types #9745

danibishop opened this issue Jul 26, 2016 · 1 comment
Assignees
Labels
typescript Typescript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@danibishop
Copy link

  • VSCode Version: 1.3.0
  • OS Version: Windows 10 Pro - 64 bits

Steps to Reproduce:

  1. Create an alias type for string
  2. Create an index signature parameter using the new type

This makes the spellcheck fail in the parameter name for the index because "An index signature parameter type must be 'string' or 'number'"

`
var d1: { [id: string]: {}; } = {} // Spellcheck Ok

type otherString = string;

var d2: { [id: otherString]: {}; } = {} // Spellcheck complains about 'id'
`

@kieferrm kieferrm added the typescript Typescript support issues label Jul 26, 2016
@aeschli aeschli removed their assignment Aug 3, 2016
@dbaeumer dbaeumer removed the typescript Typescript support issues label Aug 4, 2016
@dbaeumer dbaeumer removed their assignment Aug 4, 2016
@dbaeumer
Copy link
Member

dbaeumer commented Aug 4, 2016

This issue was moved to microsoft/TypeScript#10130

@dbaeumer dbaeumer closed this as completed Aug 4, 2016
@dbaeumer dbaeumer added typescript Typescript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) labels Aug 4, 2016
@dbaeumer dbaeumer self-assigned this Aug 4, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
typescript Typescript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

4 participants