⚗️ transform 🔢 customization
Gets the common property keys of the elements in tuple or array T.
T
import { CommonPropKeys } from 'type-plus'type R = CommonPropKeys<[{ a: number }, { b: number }]> // nevertype R = CommonPropKeys<[{ a: number, c: 1 }, { b: number, c: 2 }]> // 'c' Copy
import { CommonPropKeys } from 'type-plus'type R = CommonPropKeys<[{ a: number }, { b: number }]> // nevertype R = CommonPropKeys<[{ a: number, c: 1 }, { b: number, c: 2 }]> // 'c'
Return type when T is never. Default to never.
never
⚗️ transform 🔢 customization
Gets the common property keys of the elements in tuple or array
T
.