DEV Community

Discussion on: Advanced TypeScript Exercises - Answer 6

Collapse
 
dwjohnston profile image
David Johnston • Edited

The bit that I'm confused about is this: [number].

You say:

[number] at the end has a purpose of getting all value types of produced type

How is this exactly working?

Edit: Had a lot more of a playaround in this post I'd care to hear your thoughts there.