Answers for "how to exclude certain proprty from a class typescript"

0

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";
Posted by: Guest on May-27-2021

Code answers related to "how to exclude certain proprty from a class typescript"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language