Skip to content
Quiz · Type operators and utility types · lesson 8 of 8

Quiz — Omit and Record

Question 1 of 2

What does tsc report for this file?

TypeScript
interface User {
    id: number;
    name: string;
    email: string;
}

type Preview = Omit<User, "email">;

const p: Preview = { id: 1, name: "Ann", email: "ann@mail.com" };