Skip to content

Relax 'any' index signature requirements when a type contains a string index signature to 'any' #43064

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
DanielRosenwasser opened this issue Mar 3, 2021 · 0 comments · Fixed by #43065
Assignees
Labels
Bug A bug in TypeScript Fix Available A PR has been opened for this issue

Comments

@DanielRosenwasser
Copy link
Member

@DanielRosenwasser Wes and I spoke and recommend that we keep the assignability-target rule in place when the target has both string and numeric index signatures

Originally posted by @RyanCavanaugh in #43004 (comment)

@DanielRosenwasser DanielRosenwasser changed the title Relax all index signature requirements when a type contains a string index signature Relax 'any' index signature requirements when a type contains a string index signature to 'any' Mar 3, 2021
@DanielRosenwasser DanielRosenwasser added the Bug A bug in TypeScript label Mar 3, 2021
@DanielRosenwasser DanielRosenwasser self-assigned this Mar 3, 2021
@DanielRosenwasser DanielRosenwasser added this to the TypeScript 4.3.0 milestone Mar 3, 2021
@typescript-bot typescript-bot added the Fix Available A PR has been opened for this issue label Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Fix Available A PR has been opened for this issue
Projects
None yet
2 participants