Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 1.49 KB

File metadata and controls

13 lines (8 loc) · 1.49 KB

Mutable Keys hard #utils

by Yugang Cao @Talljack

Take the Challenge

Implement the advanced util type MutableKeys, which picks all the mutable (not readonly) keys into a union.

For example:

type Keys = MutableKeys<{ readonly foo: string; bar: number }>;
// expected to be “bar”

Back Share your Solutions Check out Solutions

Related Challenges

2793・Mutable