RequiredBy - Constructs a type with all properties of T having the opposite optionality of K.
type RequiredUser = RequiredBy<UserAttributes, 'name'>;// { id: number, name: string, email?: string } Copy
type RequiredUser = RequiredBy<UserAttributes, 'name'>;// { id: number, name: string, email?: string }
RequiredBy - Constructs a type with all properties of T having the opposite optionality of K.