Remove properties from a type.
Section: Utility Types
Use `Omit<T, K>`
typescript
typescript
type User = { id: number; passwordHash: string; email: string };
type SafeUser = Omit<User, "passwordHash">;Explanation
A common pattern for removing internal or sensitive fields.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Utility Types