## Notas
- Creates a type where all properties are set to optional??
```typescript
interface Todo {
title: string;
description: string;
}
function updateTodo(todo: Todo, fieldsToUpdate: Partial<Todo>) {
return { ...todo, ...fieldsToUpdate };
}
const todo1 = {
title: "organize desk",
description: "clear clutter",
};
const todo2 = updateTodo(todo1, {
description: "throw out trash",
});
```
## Referencias
- [[JavaScript, TypeScript, React Flashcards MOC]]
- [Partial Type - TypeScript](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype)