Back

Utility Types / Partial Transformation

00:00
1/20

Partial Transformation

Easy

'Write a function update(obj: User, fields: Partial<User>) where User has name and age.'

  • 1

    Partial<T> makes all properties of T optional.

TYPESCRIPT PLAYGROUND
TYPESCRIPT PLAYGROUND
⏳ Loading editor…