Skip to main content
Typescript exercise

Modelar o dado recebido

Sign in to hand in your solution and get feedback.

type Post = { id: string; title: string; createdAt: Date | null; }; const post1: Post = { id: "1", title: "Treino A", createdAt: null, }; const post2: Post = { id: 2, title: "Treino B", createdAt: null, }; const post3: Post = { id: "3", createdAt: null, };