Complete the code to make all properties of the type optional using a utility type.
type PartialUser = [1]<User>;The Partial utility type makes all properties optional.
Complete the code to create a type with only the 'id' and 'name' properties from User.
type UserIdName = [1]<User, 'id' | 'name'>;
The Pick utility type selects specific properties from a type.
Fix the error in the code to make all properties readonly.
type ReadonlyUser = [1]<User>;The Readonly utility type makes all properties readonly.
Fill both blanks to create a type that excludes 'password' and makes the rest readonly.
type SafeUser = [1]<[2]<User, 'password'>>;
First, Omit removes the 'password' property, then Readonly makes the rest readonly.
Fill all three blanks to create a type that excludes 'password', makes the remaining properties optional, and makes them readonly.
type CustomUser = [1]<[2]<[3]<User, 'password'>>>;
First, Omit removes 'password', then Partial makes the remaining properties optional, finally Readonly makes them readonly.