Get Readonly Keys with Dan Vanderkam - TypeScript Type Challenges #5 [EXTREME]

preview_player
Показать описание
`GetReadonlyKeys` feels like it should be so easy, but it's not. It's so hard. It will trick you with edge cases and test your ability to distribute unions. Viewer beware, haha.

00:00 description of the challenge
00:53 attempt at a solution
09:18 all tests pass
09:42 alternatives

Рекомендации по теме
Комментарии
Автор

Dan Vanderkam is an independent software developer, formerly at Google and Sidewalk Labs. He is the author of numerous open source JavaScript/TypeScript libraries, including the dygraphs charting library, source-map-explorer, literate-ts, pg-to-ts and crosswalk. He is the author of Effective TypeScript: 62 Ways to Improve Your TypeScript (O'Reilly 2019) and has spoken at numerous TS conferences. When he's not writing about TypeScript, Dan enjoys hiking, rock climbing and birding.

MichiganTypeScript
Автор

The thumbnail shows private properties and not readonly 😕

omri