Is it possible to add constraint to `keyof` of mapped types in TypeScript, for example, such that the `keyof` can only possibly `extends` certain enum type?

Thanks! #lazytwitter
You can follow @wongmjane.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled: