Tuple To Object with John Chadwick - TypeScript Type Challenges #11 [EASY]

Опубликовано: 16 Октябрь 2024
на канале: Michigan TypeScript
2,013
72

TupleToObject is one of the more tricky challenges in the "easy" difficulty level. It teaches us how to remap tuples to other type structures, which is a skill that's going to come up quite a lot in many of the future challenges.

00:00 description of the challenge
01:12 attempt at a solution
02:49 sidebar about `PropertyKey`
03:44 back to solutionizing
04:16 all tests pass
04:31 alternatives

You can view the code for this challenge on GitHub: https://github.com/type-challenges/ty.... You can also view the umbrella issue with code for all the challenges we've solved here: https://github.com/type-challenges/ty...

A new challenge posts every day from January 1st 2023 to May 20th 2023. If you’d like to join in solving them, please email us at: [email protected]

Discord:   / discord  
Twitter:   / mitypescript  
Mastodon: https://fosstodon.org/@MichiganTypeSc...
Instagram:   / michigantypescript  
TikTok:   / michigantypescript