Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 1.46 KB

File metadata and controls

19 lines (12 loc) · 1.46 KB

Mutable medium #readonly #object-keys

by jiangshan @jiangshanmeta

Take the Challenge

Implement the generic Mutable<T> which makes all properties in T mutable (not readonly).

For example

interface Todo {
  readonly title: string
  readonly description: string
  readonly completed: boolean
}

type MutableTodo = Mutable<Todo> // { title: string; description: string; completed: boolean; }

Back Share your Solutions Check out Solutions