Index signature parameter does not accept redefined valid types #9745
Labels
typescript
Typescript support issues
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
Steps to Reproduce:
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'
`
The text was updated successfully, but these errors were encountered: