Code QuizAdvanced

Omit expects a union of keys

Omit<T, K> takes a single union argument, not multiple key arguments.

Codetypescript
interface User {
  id: number;
  name: string;
  password: string;
}

type PublicUser = Omit<User, "id", "password">; // Error

What is the bug in this Omit usage?