Open shaKY-iota opened 2 years ago
// your answers type OmitByType<T extends object, U> = Omit<T, { [P in keyof T]: T[P] extends U ? P : never }[keyof T]>;