how to exclude certain proprty from a class typescript code example
Example: how to exclude certain proprty from a class typescript
type UserKeysWithoutEmail = Exclude<UserKeys, "email">;
// This is equivalent to:
type UserKeysWithoutEmail = Exclude<
"id" | "name" | "email",
"email"
>;
// This is equivalent to:
type UserKeysWithoutEmail = "id" | "name";