PartialBy - Constructs a type with all properties of T except those in K set to optional.
type UserCreationAttributes = PartialBy<UserAttributes, 'id'>;// { id?: number, name: string, email: string } Copy
type UserCreationAttributes = PartialBy<UserAttributes, 'id'>;// { id?: number, name: string, email: string }
PartialBy - Constructs a type with all properties of T except those in K set to optional.