DEV Community

Discussion on: You don't need TypeScript's index types (probably)

Collapse
 
ap13p profile image
Afief S

Do you think that this line is a typo?

As you can see, StringArray in our example allows any string to be a property name (key), and any number to be a value.

should(?) be

As you can see, StringArray in our example allows any number to be a property name (key), and any string to be a value.

Collapse
 
josnun profile image
Josiah Nunemaker

Good catch, thanks!