# TypeScript Utility Types
TypeScript provides several utility types to make your code more concise and type-safe. For example:
interface User { id: number name: string email: string}
// Partial makes all properties optionalconst updateUser: Partial<User> = { name: 'New Name' }
// Readonly makes all properties read-onlyconst readonlyUser: Readonly<User> = { id: 1, name: 'John', email: 'john@example.com' }
// Pick selects specific propertiesconst userName: Pick<User, 'name'> = { name: 'John' }
// Omit removes specific propertiesconst userWithoutEmail: Omit<User, 'email'> = { id: 1, name: 'John' }
Utility types are a great way to work with complex types in TypeScript.
echo "Using Partial, Readonly, Pick, and Omit in TypeScript"