Typescript-oefening

Favorite sem perder os dados

Meld je aan om je oplossing in te dienen en feedback te krijgen.

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; }