다음을 통해 공유


CommonProperties type

2가지 형식의 교차 속성을 반환합니다.

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