Typescript exercise

Favorite sem perder os dados

Sign in to hand in your solution and get feedback.

type Checkin = { id: string; message: string; ownerId: string; favorite: boolean; }; function favoritarCheckin(checkin: Checkin): Checkin { // Substitua este retorno por um novo objeto com favorite: true. return checkin; }