Skip to content

Update Object Types.md - #3004

Merged
Jake Bailey (jakebailey) merged 2 commits into
microsoft:v2from
oh2o:patch-1
Jun 5, 2024
Merged

Update Object Types.md#3004
Jake Bailey (jakebailey) merged 2 commits into
microsoft:v2from
oh2o:patch-1

Conversation

@oh2o

@oh2o oh2o commented Dec 25, 2023

Copy link
Copy Markdown
Contributor

Index Signatures of Object Types

It is possible to support both types of indexers, but the type returned from a numeric indexer must be a subtype of the type returned from the string indexer.

Due to the change supporting more types, both types of indexers is no more valid now.

The updated statement reflects the support for multiple types and clarifies the caveat when using both number and string indexers.

@oh2o oh2o changed the title Udate Object Types.md Update Object Types.md Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants