let userId: ID = "abc-123";
// Pick / Omit type ShortTodo = Pick<Todo, "title" | "completed">; type NoDesc = Omit<Todo, "description">;
// Arrays let fruits: string[] = ["apple", "banana"]; let numbers: Array<number> = [1, 2, 3]; // Tuples (fixed length, typed positions) let person: [string, number] = ["John", 25]; person.push("extra"); // ⚠️ allowed but avoid – TS limitation
const worker: Worker = name: "Eve", id: 42 ;
console.log(updateTodo( title: "x", description: "y", completed: false , completed: true )); src/index.ts :