Don't even try. Just watch this one. So far as anyone can tell, there's no way to accomplish this one without use of a special (and extremely rare) type that the TypeScript compiler has special knowledge of.
00:00 description of the challenge
00:56 attempt at a solution
07:26 all tests pass
You can view the code for this challenge on GitHub: https://github.com/type-challenges/type-challenges/issues/26113. You can also view the umbrella issue with code for all the challenges we've solved here: https://github.com/type-challenges/type-challenges/issues/21338
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: https://discord.gg/tmhGfR4Dye
Twitter: https://twitter.com/MiTypeScript
Mastodon: https://fosstodon.org/@MichiganTypeScript
Instagram: https://www.instagram.com/michigantypescript
TikTok: https://www.tiktok.com/@michigantypescript