Compartir a través de


CommonProperties type

Devolver propiedades intersect de 2 tipos

type CommonProperties<A, B> = {
  [P in keyof A & keyof B]: A[P] extends B[P] ? P : never
}[keyof A & keyof B]