Intersection types are not valid index signature types #5599
Labels
Committed
The team has roadmapped this issue
Fixed
A PR has been merged for this issue
Suggestion
An idea for TypeScript
Milestone
For example, a variable of type
cannot be used as an indexer type, and cannot be used to index an object with a
string
type indexer (despite being safely usable as astring
in all other locations).If an intersection type contains types which are valid for use in an index signature, then the intersection type itself should probably be valid as an index signature.
The text was updated successfully, but these errors were encountered: