⚗️ transform 🔢 customization
Gets the common keys of the record types in the array A.
A
import { type ArrayPlus } from 'type-plus'type R = ArrayPlus.CommonPropKeys<Array<{ a: 1 }>> // 'a'type R = ArrayPlus.CommonPropKeys<Array<{ a: 1, b: 1 } | { a: 1, c: 1 }>> // 'a' Copy
import { type ArrayPlus } from 'type-plus'type R = ArrayPlus.CommonPropKeys<Array<{ a: 1 }>> // 'a'type R = ArrayPlus.CommonPropKeys<Array<{ a: 1, b: 1 } | { a: 1, c: 1 }>> // 'a'
Return type when T is never. Default to never.
T
never
⚗️ transform 🔢 customization
Gets the common keys of the record types in the array
A
.