TypeScript's Omit Type Explained
Too Long; Didn't Read
TypeScript provides a number of utility types that are used to solve a particular problem using types in Javascript. One very useful utility type used in TypeScript is the Omit type, which lets us customize an already existing type. Sometimes, we want to use our type again, but remove certain elements from it, thus creating a new type. Omit accepts two values: Type to base our new type on, Union Type listing all the fields to remove. This gives us the flexibility to use a type, and transform it for specific circumstances.